Plugin download sporadically fails within IntelliJ
I'm encountering intermittent plugin download issues in IntelliJ. Initially, I received a “No route to host” error, which led me to suspect an IPv6 problem. I can reproduce this with curl, which fails over IPv6 while IPv4 works:
curl -6 https://plugins.jetbrains.com# curl: (6) Could not resolve host: plugins.jetbrains.com
I have added the following VM options to IntelliJ:
-Djava.net.preferIPv4Stack=true-Djava.net.preferIPv6Addresses=false
Since then, I no longer see the “No route to host” error, but plugin downloads still fail with a more general message:Plugin "<some plugin name>" download or installation failed.
I suspect this may be caused by my ISP’s IPv6 implementation. Is there a reliable way to force IntelliJ to use only IPv4 for plugin downloads?
请先登录再写评论。
Hi Benjamin,
It could be related to https://youtrack.jetbrains.com/issue/IJPL-6044
Please enable additional logging as described in this guide, and add the following categories for tracking:
Then restart the IDE, collect the log via Help | Show Log in...,upload it to our server at https://uploads.jetbrains.com and share the Upload ID here so that I can analyze it.
Hi Arina,
thank you for looking into this. Here is the Upload id: 2026_02_23_cu8749rVfSUgB9rpERxQEC (file: idea.log)
Hi Benjamin,
The error is still
No route to host:There isn't an IntelliJ‑specific "IPv4‑only for plugin downloads" switch. The only controls that the IDE has are exactly the JVM flags that you're already using. Beyond that, you have to solve it at the OS / network layer.
On Linux, you can either disable IPv6 system‑wide or prefer IPv4 in
gai.conf.For the first option to take effect:
/etc/sysctl.d/99-disable-ipv6.conffile and put the following lines in it:net.ipv6.conf.all.disable_ipv6 = 1net.ipv6.conf.default.disable_ipv6 = 1sudo sysctl --systemcat /proc/sys/net/ipv6/conf/all/disable_ipv6(should print1)To make the OS (and subsequently IDE) prefer IPv4, you can:
sudoeditor /etc/gai.confUncomment or add:
precedence ::ffff:0:0/96 100This will make
getaddrinfo()prefer IPv4‑mapped addresses when both A and AAAA exist.