How to find out another user connected to the same WIFI network with which you are in android?

Here I want to ask how to find out which other mobile phones are connected to the same network (WIFI) with which you are connecting, and display it on my mobile phone. For example, there would be an ANDROID application, where will I get all the users who are also connected to the same network?

+4
source share
2 answers

If you want to create an application that discovers other hosts running it on the same network ...
You can simply send UDP Broadcast to a specific port, all running instances of your application on the network can listen to this port and respond with a message identifying them as a host!

+1
source

Using CMD ...

net view shutdown/I 
-1
source

All Articles