How to find out what computers are connected to an access point/router using Linux terminal?

I would like to determine what computers are currently connected to my access point/router via the command line in Linux.

How can I do this?


You can also try:

arp-scan [network/CIDR] eg: arp-scan 192.168.1.0/24

You may need to install arp-scan - most major distributions have it in their repos.


nmap -A -T4 'ip of your network'


I use arp -an

mybox $ arp -an
? (172.16.17.135) à f0:1f:af:36:93:fa [ether] sur wlan1
? (172.16.17.143) à f8:16:54:95:ac:b2 [ether] sur wlan1
? (172.16.17.65) à 8c:70:5a:a4:74:a8 [ether] sur wlan1
? (172.16.17.1) à 00:1C:d4:01:06:0c [ether] sur wlan1

If you feel adventurous, you can use arp -a which will try to resolv IP.

This will show you only local host with active connection.

Edit:

arp is somehow deprecated, now you sould use ip n (n as neighbour).