Get Host-IPs of wireless network

点点圈 提交于 2019-11-28 14:52:41

The only way to get all the hosts in a network is to use network scanning.

You could ping all the valid IPs of the network the device is in.

Or you could check every valid IP of the network on the local DNS service for a name and list the different names you found with corresponding IP.

An IP would be valid if the Bits corresponding to the subnet mask are the same to the IP the device has.

Yván Ecarri

The easy answer is: You can't. Going more in detail: you can't unless you have a protocol to discover your hosts, for example, NetBIOS. You can call NetBEUI (NetBios User Interface) through pInvoke. Look at this previous post:

Netbios support in .NET?

Another approach you can use is to ping all the IP addresses in your WLAN range and wait for responses. This is not a good approach as it is very resource consuming.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!