Solved

Writing a Ping Routine

Posted on 2001-08-18
4
256 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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 28

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

726 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