How can I know a remote computer is not power on?

I write a program A which runs on computer A and Program B which runs on computer B. These two grograms uses TCP/IP Sockets to communicate.

If the connection cannot be established, Program A need to know that the problem is program B not running or Computer B not power on (assuming the cable connection and others are not problem).

How can I know the difference?

Peter
petershaw8Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
robert_marquardtConnect With a Mentor Commented:
Get the ICS components from Francois Piette. There is a TPing component.
The Indy components (part of Delphi 6 or http://www.nevrona.com) should also contain a Ping component.
0
 
robert_marquardtCommented:
Ping the other computer.
0
 
petershaw8Author Commented:
Hi,
Is there a way in program A ping the other computer and get ping result ?

Peter
0
 
joepeztCommented:
Ping would work
0
All Courses

From novice to tech pro — start learning today.