Sign in to follow this  
Followers 0
Maintel

Ping is not working when VPN is on

3 posts in this topic

Hello

when I turn on VPN, the Ping command is returning error #2, but of course from command prompt it is working. This is problem with Ping command? Maybe he need to always recheck routing table what network adapter it should use?

 

thx

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

Code? I simple used "ping" command... For example I tried it now with code from Help, still error 2 on VPN.

#include <MsgBoxConstants.au3>
$iPing = Ping("autoitscript.com", 250)
If $iPing Then ; If a value greater than 0 was returned then display the following message.
 MsgBox($MB_SYSTEMMODAL, "", "The roundtrip-time took: " & $iPing & "ms.")
Else
 MsgBox($MB_SYSTEMMODAL, "", "An error occurred with @error value of: " & @error)
EndIf

Edited by Maintel

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  
Followers 0