Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Ping another computer

Status
Not open for further replies.

iao

Programmer
Feb 23, 2001
111
0
0
US
What is the best (and most simplest) way to ping another computer in VB? I have a TCP-IP app called a Sender/Receiver. The Sender is installed on one pc, and the Receiver is installed on another pc.

If the Receiver goes down, the socket doesn't get closed properly, and this can cause problems.

What I would like to do is each time the sender makes a request to the Receiver (about once a minute), I would like to first ping the Receiver to make sure it's on line. If not, I would then wait another minute or so, and try pinging again.

Does this make any sense? Any help is greatly appreciated.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top