March 2nd, 2005, 08:35 AM
You should try the DNS name resolution instead of ping (gethostbyname). That will probably not be disabled by such routers.
August 10th, 2004, 04:06 AM
You might however want to skip the connect part, especially if you only have one update server, and you have to check the IP availability not only at startup, but for example every 5 minutes. If all...
July 21st, 2004, 02:16 AM
I found out later, that unfortunately the above code does not work as it should for NT/2K platforms, even if the function exists.
But I managed to solve to problem by using the gethostbyname...
February 24th, 2004, 09:11 AM
Hi!
If you don't want to ping, you only want to check for a connection from a computer to another computer (LAN or WAN), you can use the following code (unfortunately no support for Win95; but...