I am looking for a linux command that can be used to find the IP addresses of the different systems connected in the same network. All the systems are running Fedora 14.
Thanks in Advance..
This question came from our site for professional and enthusiast programmers.
I don't think there's a fully general way to do this. However, there are a couple of things you could try.
One is to run
Another is to use multicast. Are your machines running Avahi? If so, you can make mDNS queries on them; try running
I originally thought that a side-effect of this would be that your machine communicates with the machines advertising mDNS resources, which would bring their details into the ARP cache, which you could then list as above. However, this seems not to be the case.
However, what you can do is ask for a resolution of the advertised services, which obtains the machines' IP addresses. You can then extract these from
This will only find machines advertising services via mDNS, but there's a good chance that this is all your machines; modern Linux systems advertise a
I wouldn't know of such a command, but you could use a piece of software. Angry IP scanner is the one I use in Windows and I found a Linux version too.