I've got a handful of Macs on my home network, and shell access to only one of them from the outside. How can I figure out what IP address of the other machines are?
|
feedback
|
|
A quick CLI one liner to step through /24 subnet ping each IP address. Quick and kind of dirty, but it works.
Explanation: To change the range, change x=1 to x=130, or whatever you want to start at, and 254 to the end, say 135.
ping -c 3 is send three pings. To change the number of pings change the 3 to something else, and to change the address range, change the 192.168.0 to something else.
| ||||
|
feedback
|
|
Try
If you don't have further information on which computer is which, you can gain a little more information by identifying the manufacturers of the network cards through MAC address lookup. | |||
|
feedback
|
|
Assuming all the other machines are in the same broadcast domain as the one to which you have access, pinging the broadcast address will often suffice. It will not find machines that are asleep, nor those configured to not respond to pings, nor those that will respond to pings but not to broadcast pings.
The first and last response will almost always be your local machine. The You might also try the all-ones broadcast address:
This example shows less cruft. All the | ||||
|
feedback
|
|
You could try using | |||
|
feedback
|
|
If you know the name of the other computers in the LAN, the simplest way is to ping them:
This may depend on your local router or DHCP server. If the bare hostname doesn't work, try appending .local (ie, ping hostname.local). Obviously this doesn't work well for large LANs or people with poor memories. | |||
|
feedback
|
|
If you're using Macs, (assuming 10.5 or greater,) just enable VNC for desktop access and use Flame.app. It's a really nice little utility that gives you exactly what you need, really quickly. The only thing is that you would have to go farther than SSH. | |||
|
feedback
|
