You are not logged in.

#1 2024-03-07 06:53:39

Herbalist
Member
Registered: 2014-01-12
Posts: 55

how to share wifi connection on same subnet

My setup includes a laptop, and a desktop.

I'm sharing my wifi connection to my desktop with a short ethernet cable.

my laptop's local ip is 192.168.1.21 it has a bridged connection to my desktop (the desktop has no wifi). I configured it in network manager, under IPv4 settings with the method "Shared to other computers"

desktop is receiving internet device is enp3s0 and ipv4 setting is automatic dhcp

the desktop's ip is showing as

10.42.0.100

Is it possible to have them both on the same subnet, so I can test development apps without having troubles with the ip not being same as my wifi because of the subnet difference.

would a cheap desktop switch solve this issue, something like this for example

Offline

#2 2024-03-07 09:33:54

seth
Member
Registered: 2012-09-03
Posts: 52,269

Re: how to share wifi connection on same subnet

Ignoring "why would the subnet difference be a problem itfp): A cheap wifi dongle would probably be better.

https://serverfault.com/questions/43159 … -interface but I've no idea whether this is possible w/ NM (and its approach or bridging separate segments is imo more reasonable)

Let's assume you're not going to buy a wifi-dongle, why post the different segments a problem to "test development apps"?
https://en.wikipedia.org/wiki/XY_problem

Offline

Board footer

Powered by FluxBB