Ubuntu – How to get all mac addresses of the pcs connected to the wifi… from the wifi connected ubuntu

networkingwireless

I'm looking to generate a list of the machines connected to my wifi.

I'm myself connected though wifi, and would like to access this information though my wifi laptop instead of the pc that has the router connected to it (as it runs on windows).

I would like to use the shell to simply get a list of all the mac addresses connected.

Is there a way to do that? I've read this post, and this post, and it seems that those solutions are for computers connected to the router using a cable, and not wireless themselves.

ie. if I do arp -a -i wlan0, I get my own laptop connected, but just my laptop.

Is there any way to do this? I've downloaded Kali repositories, so maybe there's some tool to do that?

Thanks!

Best Answer

ie. if I do arp -a -i wlan0, I get my own laptop connected, but just my laptop.

Per the link you referenced

 sudo arp-scan --interface=wlan0 --localnet

So try that, or

 sudo arp -a -i wlan0 --localnet

And see if it returns more than just your laptop.