androidandroid-wifiwifimanager

wifi search for the devices connected to the same network i.e other than acces point(for android)


i want to make a modification to my project and right now the project status is..... it is searches the available WiFi networks and shows the list with info of the network this works properly.Now i want to search and see the details of the devices connected to the network. Is there any way to find these devices ? Your comment will be useful for me, Thanks.


Solution

  • Would you like to discover a specific device ? Or you need the list of all connected devices? The second I don't think is possible.

    EDIT

    Discovering specific devices:
    Using UDP Broadcast. Some reference can be found here!

    There are some protocols that are supported by some devices( routers, HDD, etc...), like UPNP!

    If you develop a software on the device which you would like to discover you could create a UDP server listening on a specific port. Your client will just send a broadcast message on that port and your Server will send a response with the information you need. Here it is a simple example.