Jump to content
Sign in to follow this  
koresho

Ping errors...

Recommended Posts

koresho

hey all whenever i try to Ping any host it returns an @error of 1, and I have used well-known sites like Google and such. Obviously my internet still works... any suggestions?

Share this post


Link to post
Share on other sites
koresho

no...

thats the wierd thing. My internet works but not ping from the program or from cmd

Share this post


Link to post
Share on other sites
Generator

Some website prevent from over flooding.

Share this post


Link to post
Share on other sites
Jos

no...

thats the wierd thing. My internet works but not ping from the program or from cmd

ok... you were expecting miracles from AutoIt3 :P

Many PC's/Server prevent ICMP packets these days. You could try to open a Port on the server to see if its "alive".


SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
koresho

heh :P

Alright, how do I do that? opening port 80 should work, right? however I dont know how to do that in AutoIt

Share this post


Link to post
Share on other sites
Shyke

$iPing = Ping("www.google.com", 250)
MsgBox(0, "", $iPing)

That doesn't return some number between 1 and 250?

Share this post


Link to post
Share on other sites
koresho

$p = Ping("www.google.com", 250)
MsgBox(0, "", $p)

Returns 0 for me. My network works fine, it may be my works' firewall blocking ICMP I'm not sure. So can I open ports in AutoIt?

Share this post


Link to post
Share on other sites
waldo

Is this the only way to test a network connection? When I test using TCPConnect I need the result back fairly quick and for some reason there is a lengthy delay of probably 10 seconds or longer. I need to test whether or not a VPN connection is open or ping a machine on the other side of the VPN connection or something to that effect. But the results are needed quickly.....

Share this post


Link to post
Share on other sites
koresho

haha works perfectly. thanks!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×