How to detect all the Devices connected in a WiFi network from Android App
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.