
Check computer availability over network
Take a look at this code for a ping:
http://groups.google.com/groups?hl=en&safe=off&ic=1&th=2468fe4eade11f...
and reduce the timeout to whatever your liking...
If you're having problem on the "name resolution" side of things, you
could perhaps take a look at these registry keys which should reduce
the time it takes for tcp to fail off:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
DWORD Values:
TcpMaxConnectAttempts = 1
TcpMaxConnectRetransmissions = 0
Good Luck,
-Mike
Quote:
> Hello,
> I am trying to mak a program that checks computer availability. I tried
> using a ping application, but when the computer is offline it takes more
> than 30 seconds for the ping application to return a result (I guess due to
> DNS).
> Is there another possibility? You know MS SQL Server which has the green
> arrow when the server is online? When the server goes offline or there is
> no network, within a few secons you get a red square (stop). This is the
> kind of application I am trying to create.
> If you could make any suggestions, please do so.
> Thanks,
> Geert