Solved

Writing a Ping Routine

Posted on 2001-08-18
4
249 Views
Last Modified: 2008-03-10
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
0
Comment
Question by:Lee W, MVP
4 Comments
 
LVL 28

Expert Comment

by:vinnyd79
ID: 6402781
0
 
LVL 14

Expert Comment

by:wsh2
ID: 6402786
<pinging> this question (listening).. <smile>
0
 
LVL 27

Accepted Solution

by:
Ark earned 150 total points
ID: 6402851
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
 
LVL 95

Author Comment

by:Lee W, MVP
ID: 6402903
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now