I have local application server running and I can access it using http://localhost:4554
.
If I connect to VPN not able to load above url. I am using dongle to connect to internet.
Please help!
I have local application server running and I can access it using http://localhost:4554
.
If I connect to VPN not able to load above url. I am using dongle to connect to internet.
Please help!
Using 127.0.0.1 instead of localhost as my host in the mysql connection settings solved the issue for me. I am on Avaya VPN
To connect to localhost
you must be connected to the same network as the device that is hosting the files. When you connect to a VPN however this is not the case. When you connect to a VPN it is similar to being on a completely different network as your external ip address will change therefore the local files cannot be reached. To access localhost
in this case what you have to do is
localhost
. At this point you should be connected to the your local server. One problem might cause this kind of behavior. If you are connected to a corporate network by VPN, the VPN connection will change the search domain, for example, mycompany.corp.
On the other hand, some systems in the corporate network might register themselves as 'localhost.mycompany.corp' ( this should be a mistake ).
The result is localhost.mycompany.corp will now be resolved to a private IP like 10.xx.xx.xx, and when you tried to access http://localhost:4554/ , the request is sent to 10.xx.xx.xx port 4554, instead of the supposed 127.0.0.1 port 4544.
None of the mentioned answers worked for me. What worked for me is performing port forwarding[Windows 10].
ipconfig
.netsh interface portproxy add v4tov4 listenaddress=127.0.0.1 listenport=9000 connectaddress=192.168.0.10 connectport=9000
nc -zv 192.168.0.10 9000
in output you will get 9000 port open
netsh interface portproxy delete v4tov4 listenaddress=127.0.0.1 listenport=9000
Reference: Original_Post
Check if your VPN has a feature to whitelist some IPs. I'd say you can mess up with IP tables and such, but most modern VPNs provide an option to whitelist IPS or ranges (subnets).
Each VPN may be different and you don't mention which one you are using, still check if the feature exists for you, and add your local net to the whitelist. You should be good to go then.
© 2022 - 2024 — McMap. All rights reserved.