I'd like to share internet from ethernet ( to Wi-Fi.

But when I do so and then I connect a device via Wi-Fi I get a whole different network: Is there a way to use the same network?

I need it because I have internal DNS and need to debug stuff over the LAN.


You Mac is getting a single IP address on the LAN. To enable multiple devices to access the LAN, it creates a new private network on the Wi-Fi interface, and does NAT (Network Address Translation) between that network and the LAN. This is the same thing that happens when you connect your LAN (using private addresses) to the Internet using a router that gets a single public IP address.

Devices on your Wi-Fi network will be able to access devices on your LAN. Their IP address will be "translated" to your Mac's IP address, so devices receiving requests will see them as coming from your Mac. When they reply (to your Mac), your Mac will then do the reverse translation and send the packet down to the original device on the Wi-Fi network.

Note that this works well when devices on the Wi-Fi network need to access devices on the LAN. The other way around would be a problem.

An alternative is to use bridging instead of sharing. In that case, devices on both networks will think they're all on the same network (your Mac will forward frames from one network to the other). But this means that any devices on your Wi-Fi network will appear on the LAN (and use IP addresses there). Depending on your LAN's policies, this may or may not be an issue.

  • Hello. "An alternative is to use bridging instead of sharing." Could you elaborate on this please? Thanks! – dvdblk Mar 21 '20 at 23:31

There is no need to use the same network. Usually you can simply populate your DNS-server with the IPs and the names of the hosts in the network.

If you restricted allowed DNS queries to a particular network (i.e, you have to extend this to the net.

In the network settings of the devices in the network you have to set up your internal DNS-server as DNS-server.

  • not sure if this answers my needs, basically I need to test a local website from mobile phone, ie: test.dev which resides on – sathia Feb 5 '16 at 17:34
  • @sathia This is how internet works! Though you are not in the same network as apple.stackexchange.com you can still send queries to your (public) DNS server and get a proper result! Otherwise you wouldn't be able to ask this question. OK you would have been able by making a note of the IP and using the IP instead of the dns-name... – klanomath Feb 5 '16 at 17:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .