4

I want to see all clients on network that i'm connected.I know,that is possible on Android,but i don't know how to do it on standalone Linux.I tried searching anywhere,but no result.

8

Presumably you don't have access to the router's web interface, as all pretty much all routers have a page that will show a list of client devices.

Anyway, this should be possible with a command-line tool called arp-scan.

You will either need to build it from source or use a package manager to install it. So on something like Ubuntu it would normally be:

sudo apt-get install arp-scan

The command you need for scanning would be something like this:

arp-scan --interface=wlan0 --localnet

There is more information in the user guide.

I would add that tools like these are in a bit of a grey area though as they can potentially be used for nefarious purposes.

  • Can you please add these,that "can potentially be used for nefarious purposes" ?I'm just curious,what can be done. I would like to learn something new :-) . – Smax Aug 6 '13 at 13:28
  • @Smax: It is related to ARP spoofing (en.wikipedia.org/wiki/Arp_spoofing) where a computer pretends to be something it is not, in order to disrupt and/or intercept network traffic. – James P Aug 6 '13 at 13:34
  • With systemd/udev names I found an alias to sudo arp-scan -l -t 200 -I $(ls /sys/class/net | grep -o "wl[^\t]\+") extremely useful. en instead of wl for wired interfaces. – Pablo A Jan 24 '18 at 5:51
2

If you just need the IP/MAC/HOSTNAME of the clients in your network than arp-scan will do the trick. But if you need more details like operating system, open ports, etc. than I would suggest nmap/zenmap instead :

nmap -T4 -A -v 192.168.1.0/24

You can get more information about nmap here.

You can also use Fing which is known to be an app for android but that is available for linux too.

1

This is such a broad question that I figure it deserves a broad answer. If you really want to get to know the computers around you it'll take more than just an arp tool. In fact, there are several Linux distributions dedicated to this task. One of my favorites is one of the originals: http://www.backtrack-linux.org

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.