Writing a Ping Routine

Can someone post sample code for a ping application?  I want to include a "site status" for an app I am trying to write and want to be able to ping that site via vb and determine the number of lost packets (say out of 10).  

Thanks
LVL 97
Lee W, MVPTechnology and Business Process AdvisorAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
ArkConnect With a Mentor Commented:
Hi
http://www.mvps.org/vbnet/code/network/ping.htm
>>How to Ping an IP Address Using Visual Basic<<

http://www.mvps.org/vbnet/code/network/pingbyhostname.htm
>>How to Ping an IP Address By Host Name<<

Cheers
0
 
wsh2Commented:
<pinging> this question (listening).. <smile>
0
 
Lee W, MVPTechnology and Business Process AdvisorAuthor Commented:
vinnyd79 - your answer was quite similar - the reason I chose Ark's comment as the answer though is his example was better documented, in my opinion.

However, though it wasn't part of my question, the Traceroute functionality will most likely come in handy someday AND you did give an applicable answer.  So I have created a "points question" for you - http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=visualbasic&qid=20170637
0
All Courses

From novice to tech pro — start learning today.