|
-
Sep 3rd, 2005, 01:26 PM
#1
Thread Starter
Fanatic Member
How do I ping from VB.Net
Hi, I know this is probably a dumb question, but I just want to do a simple
ping from my application and store the result. I looked in System.Net and
can't seem to find an object or method. Can someone help me?
Thanks!
-
Sep 6th, 2005, 10:09 AM
#2
Member
Re: How do I ping from VB.Net
I am also looking for an answer to this question...thanks
-
Sep 6th, 2005, 10:19 PM
#3
Re: How do I ping from VB.Net
-
Sep 6th, 2005, 11:13 PM
#4
Re: How do I ping from VB.Net
I found this for both of you.
-
Jul 29th, 2009, 04:39 PM
#5
Hyperactive Member
Re: How do I ping from VB.Net
I realize this is 3 years old, but it is the first thing that google turned up, so I thought I'd add what I found. This seems like the way to go:
Code:
If My.Computer.Network.Ping("192.168.0.152") Then
MsgBox("success")
Else
MsgBox("no reply")
End If
Dave
-
May 26th, 2010, 06:24 AM
#6
Re: How do I ping from VB.Net
When I put my own IP address into Whoisxy, it came back with "Bad host name or IP address" and I know that isn't true.
-
May 28th, 2010, 11:10 AM
#7
Re: How do I ping from VB.Net
@dogboy - why are you wanting to ping?
-
May 28th, 2010, 12:15 PM
#8
Fanatic Member
Re: How do I ping from VB.Net
 Originally Posted by dbasnett
@dogboy - why are you wanting to ping?
you do realize this post is like..5 years old right?
Regardless, Pinging is used for multiple reasons.
1. If you are using proxies, you want to make sure it has low latency so it doesnt lag your software tremendously.
2. To make sure a net service is..ONLINE.
-
May 28th, 2010, 12:41 PM
#9
Re: How do I ping from VB.Net
 Originally Posted by TCarter
you do realize this post is like..5 years old right?
Regardless, Pinging is used for multiple reasons.
1. If you are using proxies, you want to make sure it has low latency so it doesnt lag your software tremendously.
2. To make sure a net service is..ONLINE.
Really? Try this test:
1. Close your browser
2. Get a DOS Prompt
3. Ping www.vbforums.com
when you get one successful reply come back to this thread and post the results.
-
Jun 1st, 2010, 12:52 PM
#10
Re: How do I ping from VB.Net
-
Jun 1st, 2010, 03:21 PM
#11
Re: How do I ping from VB.Net
all over agian
-
Jul 6th, 2010, 03:46 AM
#12
Junior Member
Re: How do I ping from VB.Net
 Originally Posted by dbasnett
Really? Try this test:
1. Close your browser
2. Get a DOS Prompt
3. Ping www.vbforums.com
when you get one successful reply come back to this thread and post the results.
I know this is 5 yr old post but hey i just wanted to put my penny in on dbasnett post to make sure you get the right results :-
Example 1
Server is most likely up and behind firewall. (DNS to IP is working)
Ping reply :-
Pinging www.vbforums.com [63.236.73.220] with 32 bytes of data:
Request timed out.
Example 2
Server is pingable.
Pinging rasangroup.com [174.122.250.34] with 32 bytes of data:
Reply from 174.122.250.34: bytes=32 time=266ms TTL=48
Example 3
Server is nowhere to be found. (DNS to ip cannot be resolved)
ping ksksksksks.com
Ping request could not find host ksksksksks.com. Please check the name and try again.
Reason of this post? well you know what to look for if you are relying on ping reply and what different result means. I probably missed out alot of other results from ping but these are probably most common ones.
Last edited by megatrontheman; Jul 6th, 2010 at 03:50 AM.
-
Jul 17th, 2013, 02:38 PM
#13
Re: How do I ping from VB.Net
EDIT ....oops wrong thread, many apologies
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|