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
public static void NetPing() { Ping pingSender = new Ping(); foreach (string adr in stringAddressList) { IPAddress address = IPAddress.Parse(adr); PingReply reply = pingSender.Send (address); if (reply.Status == IPStatus.Success) { //Computer is active } else { //Computer is down } } }