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.
相关问题
- IPAddress.[Try]Parse parses 192.168 to 192.0.0.168
- Doing ARP and Inverse ARP on Linux 2.6.21 (glibc 2
- C# Removing trailing '\0' from IP Address
- Get host name From IP address iOS 10
- Finding local IP addresses using Python's stdl
相关文章
- How to resolve hostname to an ip address in node j
- Parsing IP Address to string doesn't work for
- [iPhone]: How send output stream via wireless netw
- iphone problem receiving UDP packets
- is it possible to turn off wifi or switch iPhone t
- Checking if there is internet connection
- Retrieve IP Address of the Default Printer Driver
- Google maps Android API getting wifi location
can you not multicast a UDP packet on the network which the server listens for and responds to with a packet containing the ip address of the server in order to set up the connection?
You should be able to find help on that topic, with some options here here and here