Cannot assign requested address: getsockopt
Answered
Hello, I'm using IntelliJ Idea Community Edition 2024.2.1, but it seems that recently the whole program cant connect to the internet. When I search for updates, I get the error: Connection failed (Cannot assign requested address: getsockopt). Even when I disable the Windows Firewall, the error is still there. I haven't changed anything on my PC, so I dont know why this happens. When I try to run a java program with gradle, I also get the error “Cannot assign requested address: getsockopt". Does anyone have a suggestion?
Please sign in to leave a comment.
Hi Maxim,
Do you use VPN or any third-party security tools/firewalls that can affect networking on your system?
Does it help if you add
-Djava.net.preferIPv4Stack=true
as a new line to Help | Edit Custom VM Options and restart the IDE?I had the exact same issue and it worked.
I have no VPN nor new third-party security tools/firewalls