find all ip address in a network

前端 未结 5 2025
逝去的感伤
逝去的感伤 2020-11-30 10:24

I am trying to do this C#. I need to find all ip address that are active in my network and show them in a list. I can ping all available (1...255) ip address in a network. B

5条回答
  •  [愿得一人]
    2020-11-30 11:09

    if you want to go the ARP route, you can simply send out ARP requests for all adresses, wait a bit, and look into the ARP table of your host

    this may help

    http://www.codeguru.com/cpp/i-n/internet/internetprotocolip/article.php/c6153/How-to-Get-an-ARP-Table-with-an-IP-Helper-API.htm

提交回复
热议问题