Jump to content
Sign in to follow this  

Ping is not working when VPN is on

Recommended Posts



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?



Share this post

Link to post
Share on other sites

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.")
 MsgBox($MB_SYSTEMMODAL, "", "An error occurred with @error value of: " & @error)

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.