Roy said:
Thanks James for your response. I've been looking through MS documenation and
could not find a piece of code that instructs me to use the ICMP Ping.
Have you seen this in action?
I've used it yes, but not from .NET (the ICMP ping routines that I've
used have been from Delphi Win32 apps). You'd expect ICMP to be part of
the .NET socket libraries but if not, you'll find them in the Indy
(Internet Direct) components for which there are .NET builds. I think
installing the entire Indy component library to get at ping might be a
little heavy handed though so I'd advise looking for a more light weight
solution.
Ping/ICMP is definitely the most simple way to verify if a computer is
turned on or not though since it's almost guaranteed to be installed and
functioning on the majority of IP enabled devices (PCs running the
Windows included). Most other protocols stand a chance of either not
being installed or not being available (due to firewalls).
Best Regards,
James Crosswell
Microforge.net LLC
http://www.microforge.net