Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Findout list of devices connected to network

Tags:

android

I want to make application which gives me the list of all the devices that are connected to my current network connection.

For eg. When i press on search button in bluetooth application gives me the list of bluetooth device that are in range , Similarly i need to develop application in when when i click on search button then it should able to give the list of all the devices that are connected to my network. I am familiar with the Networkmanager and the NetworkInfo Api.

If u have any idea how can i do this,please guide me.

Thank you

like image 697
Rakesh Gondaliya Avatar asked Sep 14 '10 11:09

Rakesh Gondaliya


1 Answers

If you mean you want to see all the devices connected to your current WiFi connection (and you are not trying to do Ad Hoc networking), then you are essentially wanting to run a network scanner.

There are a bunch of these around. This one has the source available on github

http://rorist.github.com/android-network-discovery/

like image 72
John Hawkins Avatar answered Oct 04 '22 21:10

John Hawkins