I am able to establish connection between android and PC via Wi-fi. But this is done by hard coding the the IP address of the PC (server) in the android program. But I wanted to get IP addresses of the PC's available on the Wi-fi network programmatically. So please let me know how to scan for PC's on the network and get their respective IP address.
Sam Holder
来源:https://stackoverflow.com/questions/9504721/getting-ip-addresses-of-the-pcs-available-on-wifi-network-in-android