Possible Duplicate:
Show Active Connections to “Internet Sharing”

Using the following scenario as an example:

I have a Macbook Pro connected to my LAN via its Airport. I enabled Internet Sharing so that the Airport connection would be shared among any devices connected to the ethernet port of the MBP. I plug a Raspberry Pi into the ethernet port of my MBP and boot it up.

How do I determine its IP address so I know what to SSH into?


1 Answer 1


Try pinging the broadcast address. This should work as long as the Pi got an IP from DHCP and responds to ping.

First, open up a terminal and run ifconfig en0. This should give you the info for your ethernet interface, if not, just use ifconfig and find it yourself. Make a note of the broadcast address. In my case, it's

inet netmask 0xffffff00 broadcast

So I'll run the command ping Do the same with your broadcast address, and hit CTRL-C to stop the ping once you have some results:

Miramar:~ gabriel$ ping
PING ( 56 data bytes
64 bytes from icmp_seq=0 ttl=64 time=0.113 ms
64 bytes from icmp_seq=0 ttl=255 time=3.567 ms
64 bytes from icmp_seq=1 ttl=64 time=0.096 ms
64 bytes from icmp_seq=1 ttl=255 time=3.455 ms

The broadcast is intended to go out to everything on the network. Everything that hears it should respond. In my case, I only see my IP and my router's - I guess it didn't bother passing the request on to my other machines, but you're directly connected to the Pi so you should see it there.

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