开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜