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?