473,386 Members | 1,819 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Any way to get a ping reply programmatically?

Hello,

Is there a way to get a ping return in Access / VB? I'd like to be able to
quickly tell if a local machine OR a website exists? Most of the hits I get
on google are with regard to using Access as a back end for websites. Any
direction would be greatly appreciated.

Thanks!
May 3 '06 #1
3 6718
Rico,

there's code at VBNet to do this.

http://vbnet.mvps.org/code/internet/ping.htm

When I used it, I compared the return to whatever success was defined
as.

then you can just write the results to a table. (Essentially, open an
updateable recordset of IP addresses, then pass the IP address to the
Ping function and then write the result back to the table.

May 3 '06 #2
Thanks, that code works very well, but I don't always know the IP Address
that will be queried. I do know the server name though and the IP Address
may change. Have you ever used any code that would query a DNS server or be
able to extract the IP Address from the FQDN?

<pi********@hotmail.com> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.com...
Rico,

there's code at VBNet to do this.

http://vbnet.mvps.org/code/internet/ping.htm

When I used it, I compared the return to whatever success was defined
as.

then you can just write the results to a table. (Essentially, open an
updateable recordset of IP addresses, then pass the IP address to the
Ping function and then write the result back to the table.

May 3 '06 #3
Ah! Never mind, found what I'm looking for. Thanks!

"Rico" <me@you.com> wrote in message news:lg96g.114100$P01.26771@pd7tw3no...
Thanks, that code works very well, but I don't always know the IP Address
that will be queried. I do know the server name though and the IP Address
may change. Have you ever used any code that would query a DNS server or
be able to extract the IP Address from the FQDN?

<pi********@hotmail.com> wrote in message
news:11**********************@v46g2000cwv.googlegr oups.com...
Rico,

there's code at VBNet to do this.

http://vbnet.mvps.org/code/internet/ping.htm

When I used it, I compared the return to whatever success was defined
as.

then you can just write the results to a table. (Essentially, open an
updateable recordset of IP addresses, then pass the IP address to the
Ping function and then write the result back to the table.


May 3 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Alberto Vera | last post by:
Hello: Is it possible to make "ping" from Python and get statistics like using command prompt from Windows? How Can I capture them into variables? Thanks Pinging XXXX.XXXX.XXXX.XXXX with...
0
by: krisan | last post by:
Hi, i am writing a program for ping operation which supports both Ipv4 and IpV6 ..first i wrote for both of them individually , but i am unable to mix them such that they support both the versions...
0
by: Ed | last post by:
I've attached some VB.NET code I've hacked together (some taken from MS examples & newsgroup postings) that will perform a ping or IcmpSendEcho using the icmp.dll (see this for more info:...
21
by: Neel | last post by:
I am trying to "ping" a remote host in my C++/Redhat Linux code to check whether that host is connected or not. if (0 == system("ping -w 2 192.168.0.2)) But, in both cases...
4
by: MLH | last post by:
C:\Docs\TitleWork>ping piedmonttriadtowing.dyndns.org Pinging piedmonttriadtowing.dyndns.org with 32 bytes of data: Reply from 70.60.253.195: bytes=32 time=49ms TTL=239 Reply from...
5
by: Deepak | last post by:
I am programing a ping application which pings various centers . I used timer loop and it pings one by one. Now when i finish pinging one center it should wait for the ping_completed function to...
1
by: Krish | last post by:
All, I have an offline application that works online for some data syncronization. For data syncronization I access a webservice. I want to show whether my application is online or not by checking...
5
by: Michael M. | last post by:
I have the following code (listed at bottom of post) that pings a small range of IP address to see which ones are alive. To speed things up a little I am trying to use more than one thread,...
2
by: napstar | last post by:
I'm using the Ping Class to ping a location.If it is successful I copy a file across the network to the local machine and then delete it but if it isn't I move on. The problem is that the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.