How to Fetch list of users connected to WIFI Access Point / Router.


  • Hi All,

    I would like to access the list of users/device connected to an WIFI Access Point or Router with the details of Mac Address or IP Address of each user.

    I tried many ways to achieve this but, unfortunately there is no success.

    Can any one help me how to achieve this or share some links to work with.

    Thanks in advance,

    Nagarjuna Dilip

    Wednesday, December 19, 2012 7:36 AM


All replies

  • There are only two ways: Either the access point has a method which tells you that or you sniff the entire traffic with a second WIFI device (which is really hard to do without arcane knowledge about WIFI).
    Wednesday, December 19, 2012 7:48 AM
  • Hi Stefan,

    Thanks for your reply.

    My understanding for first way, you mean to say that we need to get the specific API for each Access Point and then pull the information..?

    Second Way: I din't understand how do with it.

    But, Is there any other alternative to get the information with out using specific API...? 

    Because, we have different vendor's (DLink, CISCO, BelKin etc.) access points installed in our site. Our plugin should be smart enough to identify the user/ device who are connected to particular Access Point and serve the information.

    So, if i use particular vendor's (DLink) API then we won't be able interact with other vendor's (CISCO) device.

    So, can you please suggest me how to achieve this!

    Thanks in advance,

    Nagarjuna Dilip

    Wednesday, December 19, 2012 9:51 AM
  • Yes. You need such an API for each access point. Maybe there is a common one, but I don't know that.

    The second way means that you observe the entire WIFI traffic..

    Well, when your access points just forwards the traffic, than you can ask your router/switch.  ports where the AP are connected to. Then you need only one API.

    • Marked as answer by NagarjunaDilip Thursday, December 27, 2012 5:27 AM
    Wednesday, December 19, 2012 10:07 AM
  • It would be of great help if you could suggest me some relevant API's to achieve this.


    Nagarjuna Dilip

    Wednesday, December 19, 2012 10:17 AM
  • Hi,

    Some light on this...?

    Nagarjuna Dilip

    Wednesday, December 26, 2012 8:28 AM
  • Just some ideas:

    If you need to acces this info programatically, and for several brands access points, ie a standar protocol, ill check some SNMP Manager client software, there are a lot, through SNMP you can access all the info of the access point in a standarized way.

    If you just need to eventually and visually check the info, have you tried to do http://ip.of.access.point you sure access to the gui of admin and status info of the access point


    Wednesday, December 26, 2012 12:56 PM
  • Hi Enrique,

    Thanks for your reply.

    If you could share any articles based on SNMP access for Router/Access Point that will be great helpful to me. 

    Nagarjuna Dilip

    Wednesday, December 26, 2012 1:21 PM
    • Marked as answer by NagarjunaDilip Thursday, December 27, 2012 5:27 AM
    Wednesday, December 26, 2012 2:16 PM
  • As Stefan suggested unless you can use specific APIs (if they exist), you will have to sniff all the network traffic and gather the information. I would suggest that you use Pcap.NET as it provides a nice wrapper for all of this. I used it a few years ago to do some low level network stuff and it work very well.



    • Marked as answer by NagarjunaDilip Thursday, December 27, 2012 5:27 AM
    Wednesday, December 26, 2012 4:31 PM
  • Thanks a lot, Stefan, Enrique & Brad. I'll go through the suggested links by you. I'll come back if i have any issues. 

    Nagarjuna Dilip

    Thursday, December 27, 2012 5:23 AM
  • using System;
    using System.Net;

    using System.Net.NetworkInformation;

    IPGlobalProperties ipProperties = IPGlobalProperties.GetIPGlobalProperties();

    IPEndPoint[] endPoints = ipProperties.GetActiveTcpListeners();
    TcpConnectionInformation[] tcpConnections = ipProperties.GetActiveTcpConnections();

    foreach (TcpConnectionInformation info in tcpConnections)
    Console.WriteLine("Local : " + info.LocalEndPoint.Address.ToString()
    + ":" + info.LocalEndPoint.Port.ToString()
    + "\nRemote : " + info.RemoteEndPoint.Address.ToString()
    + ":" + info.RemoteEndPoint.Port.ToString()
    + "\nState : " + info.State.ToString() + "\n\n");

    Its a start I think you can get the rest. Don't forget UDP and Bluetooth.

    Thursday, July 03, 2014 4:46 AM
  • Researching similar didn't see the post date lol.

    My codes working but I'm adding a lot more to it.

    Thursday, July 03, 2014 4:48 AM