Unable to access local server running after VPN connection

I have a local application server running and I can access it using http://localhost:4554 .

If I connect to a VPN, I can’t download the above url. I use a key to connect to the Internet.

Please, help!

+10
localhost vpn dongle
source share
3 answers

To connect to localhost , you must be connected to the same network as the device on which the files are located. When you connect to a VPN, it is not. When you connect to a VPN, it looks like a completely different network , as your external IP address will change, so local files cannot be reached. To access localhost , in this case you need to

  • Make sure the VPN is disabled.
  • Set up port forwarding, and then find out your external IP address.
  • Verify it using an external IP address instead of localhost . At this point you should be connected to the local server.
  • Turn on the VPN and enter your previous external IP address, because remember that your external IP address will change after you enable the VPN.
+4
source share

Using 127.0.0.1 instead of localhost as my host in mysql connection settings solved the problem for me. I am in Avaya VPN

+3
source share

One problem can cause this behavior. If you are connected to the corporate network via VPN, the VPN connection will change the search domain, for example, mycompany.corp.

On the other hand, some systems on the corporate network may register as "localhost.mycompany.corp" (this should be a mistake).

As a result, localhost.mycompany.corp will now be converted to a private IP address, for example 10.xx.xx.xx, and when you try to access http: // localhost: 4554 / , the request will be sent to port 10.54.xx. xx.xx 4554, instead of the expected 127.0.0.1 port 4544.

0
source share

All Articles