Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I made ad-hoc wireless network on my Gentoo workstation using NetworkManager. Is there any way to see what network adapters are connected to this network?

share|improve this question

migrated from Oct 6 '11 at 3:54

This question came from our site for professional and enthusiast programmers.

netstat should be able to show this.

netstat -aenp | grep 'INSERT_IP_OF_ETH_ADAPTER_HERE'

For example:

[ 12:13 root@host ~ ]# netstat -aenp | grep ''
tcp        0     52              ESTABLISHED 0          34722586   29599/sshd: jon [pr
tcp        0      0               ESTABLISHED 505        23721631   28772/istatd
udp        0      0    *                               38         30885053   1611/ntpd

should show who is connected on a certain interface. If you don't know the IP or interface to use, do ifconfig -a and see which is running your ad-hoc network and it should show the IP address.

share|improve this answer
Thanks for answer. But I would rather want to know what device (mac address) is connected. Above shows connections made through my adapter. – gumik Oct 5 '11 at 20:01

You must log in to answer this question.