Solved

Writing a Ping Routine

Posted on 2001-08-18
4
248 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
Comment Utility
0
 
LVL 14

Expert Comment

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

Accepted Solution

by:
Ark earned 150 total points
Comment Utility
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
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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.
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…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

763 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

12 Experts available now in Live!

Get 1:1 Help Now