Skip to content
Advertisement

Intellij Idea fails to start with VPN enabled

I am having a trouble with launching Intellij Idea Ultimate Edition 2021.1.2 (also tried 2020.3.1) with VPN enabled (I am using GlobalProtect) on Windows 10. I’ve been working on this setup for quite a long time, but recently something went wrong with no obvious changes made. So, after launching Intellij Idea I get an error window with following:

JavaScript

After I prees OK button IDE shuts down. If I disable VPN everything works fine. After some research I found the way to start Idea with VPN enabled with VM option -Djava.net.preferIPv4Stack=true, but that really doesn’t solve the problem, because I still need VPN for my project. If I start Idea and then enable VPN, after I try to start project I get Cannot assign requested address: no further information message from Gradle. Or if I simply open Maven project, I get

JavaScript

Any ideas on how to resolve this issue?

Advertisement

Answer

Adding system variable _JAVA_OPTIONS:-Djava.net.preferIPv4Stack=true resolved all issues

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement