How to detect all the Devices connected in a WiFi network from Android App [closed]
Asked Answered
R

3

32

I am developing an app in which I need to scans WiFi network and display the list of all connected devices.

Allow a use to tap on a device and the app should show all the hardware info of that particular device. Here by hardware I mean - RAM, Storage Media, Storage Capacity, Device Name, Device IP address, etc.

Now this device can be anything like xbox, a laptop with Linux/Windows, mobile phone like iPhone or any Andorid based smart phone or even a printer.

How can I scans WiFi network and query/detect all the devices attached to it?

What are the protocols that I need to use to get list of hardware in a particular device irrespective of the OS running on it?

Rahm answered 12/9, 2012 at 11:18 Comment(5)
See https://mcmap.net/q/470139/-android-findout-list-of-devices-connected-to-network/1321873Tsarevna
If you are lucky enough to get an answer, it might worth trying to contact this team: play.google.com/store/apps/…Hemimorphic
I have know of another software with more features than Fing! Check it out: bit.ly/QICmG2. I want to achieve something similar to this but it should work with any kind of device that can connect to WiFi.Rahm
Not all the features of fing, but faster and doesn't crash play.google.com/store/apps/details?id=com.wwnd.netmapperWhipsaw
android-arsenal.com/details/1/3112Propriety
A
5

Maybe the Network Discovery github project could help you. It lists all users connected to WiFi with IP and MAC addresses and gathers even some information like open ports, device name, ping, etc. Hope it helps

Anglin answered 10/8, 2017 at 10:42 Comment(0)
B
7

Check requestPeers of WifiP2pManager

As per documents it seeks PeerListListener which returns WifiP2pDeviceList carrying list of WifiP2pDevice which carries deviceAddress, deviceName, primaryDeviceType, secondaryDeviceType, status and other attributes.

Bathsheb answered 17/1, 2015 at 15:33 Comment(2)
hi javanator, i tried with WifP2pManager, but not able to detect any devices through requestPeers(). This approach is for wifi Direct. can you help me for finding a Local device (LAN) connected to the wifi router.Shepard
@Shepard you need first to run discoverPeers() and then on completion run requestPeers()Cashbook
A
5

Maybe the Network Discovery github project could help you. It lists all users connected to WiFi with IP and MAC addresses and gathers even some information like open ports, device name, ping, etc. Hope it helps

Anglin answered 10/8, 2017 at 10:42 Comment(0)
R
0

In my opinion, you can use Wi-Fi Peer-to-Peer

https://developer.android.com/guide/topics/connectivity/wifip2p.html

"Wi-Fi peer-to-peer (P2P) allows Android 4.0 (API level 14) or later devices with the appropriate hardware to connect directly to each other via Wi-Fi without an intermediate access point (Android's Wi-Fi P2P framework complies with the Wi-Fi Alliance's Wi-Fi Direct™ certification program). Using these APIs, you can discover and connect to other devices when each device supports Wi-Fi P2P, then communicate over a speedy connection across distances much longer than a Bluetooth connection. This is useful for applications that share data among users, such as a multiplayer game or a photo sharing application." Blockquote

Ranket answered 27/2, 2018 at 6:0 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.