Post topics, source code that relate to the Arduino Platform

User avatar
By kolban
#26418 I don't believe there is an assured way to achieve this. If we take the ESP8266 out of the equation, I don't think there is a way that any WiFi Station can ask the access point for a list of other stations also connected to the same access point. The only way I could imagine something like this working would be to broadcast a UDP packet and hope that everyone on the network responds.

When you "login" to an Access Point, the access point software can tell the user who is connected. For example, if you run an ESP8266 "AS" an access point, there is API that can run on the ESP to let you know who is connected ... but against a general WiFi access point ... no such beastie that I am aware off.

Neil
User avatar
By RogerClark
#26427 If you just want to know what other devices are on the network you could ping scan the entire subnet. But it will take a while to complete e.g. wait 200ms on all 253 subnet addresses (that are not the esp and not the router)

But I'm not sure if ping_start is implemented for Arduino
User avatar
By eldonb46
#26444
Silux wrote:How i can get a list of IP connected the router the esp8266 is connected with?(and possibly their host names?)
Example:
192.168.1.101 - pc_home
192.168.1.102 - android-f8813918
192.168.1.103 - espModule


For playing with the Esp's, there are two Cellphone APPs that are your friends: "Wifi Analyzer" and "Net Scan". both of which will help you answer your question.

I use them often and would be lost without. These Links are for the Android APPs, iPhone may have something similar.

See:

https://play.google.com/store/apps/details?id=com.farproc.wifi.analyzer

https://play.google.com/store/apps/details?id=com.wwnd.netmapper

Eldon - WA0UWH