Jump to content

Internet connection not working with VPN


Go to solution Solved by Jos,

Recommended Posts

Hi everyone,

I have a problem that I already had in the past and I didn't find any solution on this forum.
Whenever I activate my VPN, I cannot use my internet connection anymore through scripts.

For example, without VPN when I do : Ping("www.google.com") it works properly.
With VPN ON when I do : Ping("www.google.com") I have @error = 2.
I do have an internet connection though because if I manually launch google chrome i can go on google.

Same error when I try to do calls with "WinHttp.WinHttpRequest.5.1" => $oHTTP.Send() doesn't respond.
It looks like autoit isn't able to use the VPN connection properly.

Does anyone know what's going on?

 

Thank you !

Link to post
Share on other sites
  • Developers
1 hour ago, Neat said:

Whenever I activate my VPN, I cannot use my internet connection anymore through scripts.

What kind of VPN is this?  Does it use a proxy? 

 

1 hour ago, Neat said:

Ping("www.google.com") I have @error = 2.

Does a ping from the cmd box work when VPN is connected or is that also failing?

 

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

Link to post
Share on other sites

Thank you Jos for your quick answer !

3 hours ago, Jos said:

What kind of VPN is this?  Does it use a proxy? 

The name is "Check Point Mobile". The proxy is set to "detect proxy from IE settings"

3 hours ago, Jos said:

Does a ping from the cmd box work when VPN is connected or is that also failing?

Oh ! I just checked and it also fails.

Link to post
Share on other sites
  • Developers
  • Solution
5 minutes ago, Neat said:

Oh ! I just checked and it also fails.

well.....  miracles won't happen when using AutoIt3 when it doesn't work with basics. ;)
This likely is some sort of proxy setup basically disabling most direct (routed) IP traffic and you get these type of errors. 

 

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

Link to post
Share on other sites

Just for the record, the ping problem couldn't be solved (apparently ping and VPN/proxy work hardly together?)
BUT, I did solve the following problem :

5 hours ago, Neat said:

Same error when I try to do calls with "WinHttp.WinHttpRequest.5.1" => $oHTTP.Send() doesn't respond.

with : $oHTTP.SetProxy(2,"ip_address_of_my_proxy")

Link to post
Share on other sites
  • Developers

Making sense yes. Ping will only work when the default IP gateway allows the port through, which I assume won't be the case when this software works with a proxy likely to  interrogate the traffic for dodgy stuff.

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

Link to post
Share on other sites

Just chiming in here a little bit.  It's possible that the VPN connection is blocking ping / ICMP.  If browsing still works, that means that DNS and HTTP/HTTPS is working properly.  You could try a trace route (tracert) both on and off VPN to see where the pings stop.

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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By mmoalem
      Hi there - creating a simple script to triger cctv software to turn on when my phone is not connected to home wifi. But having issues with my phone (samsung s7) not answering ping when sleeping (despite wifi set to work when sleep) - not sure the issue... and ideas? 
      Alternatively was wondering about pinging the bluetooth address of the phone - anyway to get this working in autoit?
    • By argumentum
      The file is now at 
      I added a WOL, tidy up, and moved the file to the uploads section of the forum.
      Suggestions are always mostly welcomed  
    • By argumentum
      In the ZIP is the code and the compiled script.
      This is yet another ping the LAN utility.
      Is quite fast, as gathering the info. is forked.
      The Save Note, saves a note for the given MAC ( you may find it handy )
      The Save MACs, saves the listview to an INI file that can be later use for the WakeOnLAN
      Right click will bring a context menu to do stuff. DClick will refresh the Ping.
      That's it. Comes in handy to have in the USB toolbox  
    • By hcI
      Hello everyone !
      While writing a sample of code to test ping to my internet box, I got stuck..
      While the code is Pinging with let say.. 5000ms of timeout, I need to update a progress bar from 0 to 5000 ms at the same time but I don't know how could I do this..
      Is there a way or something that could get around the pause of the ping like in InetGet -> InetGetInfo?
    • By AlexFing17
      i want a script that
      "on the beginning of the program it pings to check if there is internet connectivity.
      if there is internet connectivity
      then it executes my code
      else if there is no internet it waits at background to detected internet connectivity then executes my code."
       
      Is this possible

       
×
×
  • Create New...