android - Discover all connected devices from local network? -


i working on network discovery in android application showing connected devices local network(wifi) . shows dhcp server assigned ip address router mac address. mac address arp table. ex : device ip : 192.168.0.138 gateway : 192.168.0.4 subnetmask : 255.255.252.0 reference code : https://github.com/rorist/android-network-discovery ip address 192.168.0.xxx , etc above sample code.it fine. want show self-assigned ip address(default ip address 169.254.xxx.xxx) device while device newly connected in router.how can show kind of ip address router?

way 2: using udp socket tried ssdp protocol network discovery using multicast socket via udp. connected socket 239.255.255.250 , port 1900 getting probe message ws-discovery using soap protocol.but way not working . please give idea ?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -