Ping System

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jijiepink
    New Member
    • Jul 2008
    • 1

    Ping System

    i need a source code in which i can Ping multiple IP address at 1 time. I'm beginner...plea se help...thank you...
  • cloud255
    Recognized Expert Contributor
    • Jun 2008
    • 427

    #2
    For C#:

    some sort of loop:

    Code:
    foreach(string Host in MyHostsCollection)
    {
        Ping myPing = new Ping();
        PingReply reply = myPing.send(Host, timeoutConstant);
    }
    so i would make some sort of array or collection of PingReplies so that you can trace which hosts responded and which failed.

    Comment

    Working...