[DUG] Detecting if a server is present.
Phil Scadden
p.scadden at gns.cri.nz
Tue Nov 24 11:23:11 NZDT 2009
I have a program that connects to a remote server with an Indy
idTCPClient component on a specified port.
What I am trying to do is improve diagnostics for when the server doesnt
respond. Ie there are two possible
reasons for failure.
1/ The server is unreachable or blocked
2/ The listening program on the server is down.
When a failure occurs, I thought I would try pinging the server to see
if present from in the code. No go.
Ping returns an access denied - though using the ping command on the XP
client works fine. Strange.
Any other ideas for distinquishing 1 and 2? The firewall settings around
both client and server are pretty extreme.
--
Phil Scadden, Senior Scientist GNS Science Ltd 764 Cumberland St,
Private Bag 1930, Dunedin, New Zealand Ph +64 3 4799663, fax +64 3 477 5232
Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.
More information about the Delphi
mailing list