job.answiz.com
  • 8
Votes
name

Using Ubuntu 10.10, I was wondering if there was a command line command that can list all the IPs of devices connected to the network?

I would use this for example, to list all the computers connected to my home network. Ideally, it needs to be command line as I will be running it from C++.

Any ideas?

In windows this would be "arp -a" I believe that an equivalent of that in Linux would be "arp -e".

This information can be found from the man page for arp :

arp with no mode specifier will print the current content of the table.
-e : Use default Linux style output format (with fixed columns).
  • 0
Reply Report