Results 1 to 5 of 5

Thread: Ping Utilities

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2001
    Location
    SA
    Posts
    17

    Ping Utilities

    Hi I have been working with the ping modules and classes that I got from www.freevbcode.com at first they seemed to be working fine but discovered when I ran my programe on a busy machine the modules timeout. Resulting in a no reply when the server is online I played with the Timeout settings but no luck there. If anyone had the same problem or somthing please help me
    thanks.

  2. #2
    Addicted Member
    Join Date
    Jul 2001
    Posts
    133
    I am working on a multithreaded ping object. It won't be done for some time though.

    I did have a quick look at the site you mentioned, but there was a lot of results when I searched for 'ping'.

    I can tell you that most people use ICMP.DLL to perform a ping. Apparently ICMP.DLL was suspose to be a temporary MS solution - lol. Even the ping.exe uses it. Because of MS's status of ICMP.DLL you may not find much help.

    However, you can create your own ping be creating your own packet and using sockets to send it.

  3. #3
    jim mcnamara
    Guest
    Ping is just not that big a deal.

    Here is sample code that provides full ping functionality using ICMP in about 60 lines of code minus the data defs.

    http://www.mvps.org/vbnet/code/network/ping.htm

  4. #4
    Addicted Member
    Join Date
    Jul 2001
    Posts
    133
    The code for ICMP Ping from VB is everywhere - your right, it's not that big a deal to use it. I think he should post the code he is using.

  5. #5

    Thread Starter
    Junior Member
    Join Date
    Apr 2001
    Location
    SA
    Posts
    17
    I use more or less the same code as at the link above, the problem is sometimes it returns a failed ping when it used an ip address that are suposed to work. I am running a much smaller app now to see if the error is occurs somewhere else but I don't know why it would return an error I'm sure it uses a valid IP and it still returns a failed Ping for some reason. Is it posible that the ping fuction can fail because of other events or code interfering after I called the Ping fuction?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width