简体   繁体   中英

Find participants in a WiFi network in Android app

I want to build a client-server software for use in a WiFi network. On the server I will develop a program which listens on a special port for incomming actions. The client should be an Android app, which should send data to this port. Now I want to find out, which participants are in the WiFi network with their IP adresses for easy usage. I didn't find any functionallity in the Android docs. Is there another solution for this?

The best and most portable way to do this is to have your client ask your custom server to tell you about the other clients that have registered with it.

The ability or (more likely) lack of ability to discern this from the network implementation itself is the kind of implementation-specific detail you should generally avoid depending on.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM