shlomo koren Posted January 17, 2007 Posted January 17, 2007 Hi I have problem with ping function . I run ping function and it is reply that the "Host is offline" but when i use windows xp ping command i get a reply. Simple script is: ------------------------------------------ $result=Ping("145.9.193.22") Msgbox(0,"Status","An error occured with number: " & @error) msgbox(0,"debug","Result is:"&$result) output is An error occured with number:1 Result is:0 ---------------------------------------------- windows xp ping command result are: Pinging 145.9.193.22 with 32 bytes of data: Reply from 145.9.193.22: bytes=32 time=3ms TTL=124 Reply from 145.9.193.22: bytes=32 time=2ms TTL=124 Reply from 145.9.193.22: bytes=32 time=2ms TTL=124 Reply from 145.9.193.22: bytes=32 time=2ms TTL=124 Ping statistics for 145.9.193.22: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 2ms, Maximum = 3ms, Average = 2ms ------------------------------------------------------------- Autoit version is 3.2.2.0 Regards
MHz Posted January 17, 2007 Posted January 17, 2007 From testing with the example from the helpfile, Ping() fails if the inbuilt XP firewall is ON but succeeds if if the firewall is turned OFF. Ping from a command prompt works with firewall ON or OFF.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now