Anyone knew how to enumerate how many computers connected through a wifi router? Im just bought a wifi router and setup a wlan on my apartment.
It really depends on what router you have. You can look at the DHCP table, MAC address table or LAN connections table.
Quote from: Mr Hippy on July 02, 2012, 03:10:28 AM
It really depends on what router you have. You can look at the DHCP table, MAC address table or LAN connections table.
Do you know what function I should use from the WinAPI?
Quote from: Farabi on July 02, 2012, 12:13:38 PM
Do you know what function I should use from the WinAPI?
Usually you acess the router via the web interface.
Maybe you could use InternetConnect (http://msdn.microsoft.com/en-us/library/windows/desktop/aa384363(v=vs.85).aspx), then connect to the router (usually the IP address is http://192.168.1.1). Parse the result, and you can enumerate how many PCs are connected to the router.
Quote from: anta40 on July 02, 2012, 03:42:34 PM
Quote from: Farabi on July 02, 2012, 12:13:38 PM
Do you know what function I should use from the WinAPI?
Usually you acess the router via the web interface.
Maybe you could use InternetConnect (http://msdn.microsoft.com/en-us/library/windows/desktop/aa384363(v=vs.85).aspx), then connect to the router (usually the IP address is http://192.168.1.1). Parse the result, and you can enumerate how many PCs are connected to the router.
Thanks, that is help a lot.