Eclipse not working when VPN is enabled

4.2k Views Asked by At

Eclipse can't access remote resources when I have VPN enabled.

I use PIA's VPN (https://www.privateinternetaccess.com/), I asked them but they say they don't provide support for Eclipse.

When I try to import a Gradle project it fails with the following error:

Permission denied: connect

Any idea of how to make Eclipse work when a VPN is on?

2

There are 2 best solutions below

2
On

whenever you want to access some remote resources they need to accessible by the network you are using.

your VPN might not know how to reach that resource. you can add exception routes in command prompt to ask your VPN to explicitly go to that path and provide ipaddres of your remote resource there.

you might need to contact your system administrator to configure it for you

0
On

I had the same issue and this answer did the trick.

Under Preferences... -> General -> Network Connections
Change Active Provider to Native.