How to access devices that are on shared network

2

So I’m sharing my Mac’s Wi-Fi connection through Ethernet, into a router.

I have a few devices hooked up to the router, but mostly it’s the two Raspberry Pi’s that I’m worried about since I SSH into them often. The Pi’s are both connected to the Internet, but I can’t seem to SSH into them from my Mac.

Do I need to be using a different IP address, or is this just not possible?

The Beanstalk

Posted 2015-10-05T00:06:18.003

Reputation: 121

I attempted to do some basic copy edits to make sense of this question, but the first sentence reads weird to me: “…sharing my Wi-Fi Mac’s Wi-Fi connection through Ethernet…” What is that? What is a “Wi-Fi Mac?” Please clarify. Also, what is the exact make/model of the router in question? Without those details few people can help you here. – JakeGould – 2015-10-05T00:13:56.300

1If the router is doing network address translation (which the Mac should be handling on its own), then you'll need to set up port forwarding on the router. This is the same any time you try to connect from upstream of the router, whether that upstream is a random device on the Internet or the very device plugged into the router's upstream port. – CBHacking – 2015-10-05T00:16:09.717

Answers

0

The Mac's shared connection won't be on the same subnet as the main router.

The Mac is likely to be sharing from 192.168.2.x by default, and will also be doing its own NAT.
If you try to get round that by opening up your subnet mask, you are then going to have 2 DHCP servers fighting each other & still have double NAT.

The solution might be to use something like IPNetRouterX to set the Mac up in Bridging mode.

If you're feeling brave, there is a method here to enable bridging, which is so far above my pay grade I'm not even going to try to précis it...
Bridging a wireless and an ethernet network with OS X 10.8, updated again

Or save all the trouble by hanging a WiFi Access Point off the router & use that instead of the Mac's connection sharing.

Tetsujin

Posted 2015-10-05T00:06:18.003

Reputation: 22 456