Other than UDP Broadcast or Multicast, what other methods can I use on a WiFI network to discover computers?

别说谁变了你拦得住时间么 提交于 2019-12-03 09:14:29

There is no easy way to discover only "computers". You can however find almost all network devices using ARP requests.

The steps would be:

  1. Connect to the network
  2. Get the network IP address range (for example: "192.168.0.0/24")
  3. Send an ARP request for every possible address in this range ("192.168.0.1" => "192.168.0.254")
  4. Wait for the replies

Usually, network devices respond to ARP requests because ARP is needed for IPv4 to work.

You may find additional resources here.

Note: you'll problably need to have Administrator privileges (root on UNIX) in order to do that. Sending forged ARP requests usually requires elevated privileges.

Another way could be to send broadcast pings (ping -b 192.168.0.255 on UNIX OSes). But Windows computers (and some other devices) usually don't respond to such pings.

you could try bonjour, perhaps.

also, on many access points, it is possible to disable client to client communication. it's possible this is what you are running into during your testing.

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