Cannot assign requested address: getsockopt

已回答

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?

0

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?

1

I had the exact same issue and it worked.
I have no VPN nor new third-party security tools/firewalls 

0

Adding the above line to my custom vm options fixed the issue for me, not sure why it was downvoted...

0

请先登录再写评论。