Network connectivity issues when running under Java 1.7

You can observe various networking related problems when running the IDE under JDK 1.7, it mainly affects Windows, but can also happen on other systems.

The list of common errors

  • Connection to 'xxxxxxx.com' failed
  • Could not list the contents of folder
  • java.net.SocketException: Permission denied: recv failed
  • java.net.SocketException: Permission denied: connect
  • java.net.ConnectException: Connection refused: connect
  • java.net.BindException: Cannot assign requested address: connect
  • org.jboss.netty.channel.ChannelException: Failed to create a selector
  • java.net.ConnectException: connection timed out
It can affect any other Internet and local network related activity in the IDE, for example:
  • Browsing the plugin repository
  • Downloading the JDBC drivers for the database module
  • Downloading external JS and Java libraries for local autocompletion
  • Resolving Maven dependencies
  • Performing compilation with external build mode enabled
  • FTP deployment
  • License server connection
  • Obtaining an exclusive lock to prevent concurrent caches/settings access on IDE startup

Solutions

  • Add -Djava.net.preferIPv4Stack=true into the list of the IDE JVM options. If you are using IPv6 only network, specify 
    -Djava.net.preferIPv6Addresses=true option.
  • On Windows run netsh advfirewall set global StatefulFTP disable to resolve FTP connection issues.
  • Agnitum Outpost Security Suite and some other firewalls may block even localhost connections, disabling firewall may not help, only uninstalling the firewall will resolve the problem.
  • If nothing above helps, try running the IDE under JDK 1.6 instead.

Links

15 comments

Hi All,

 

I couldn't check for updates and browse the plugin repository.

In my case solution was to install this:  http://www.microsoft.com/en-us/download/details.aspx?id=10193

Maybe it will help somebody too :)

 

Cheers,

Kamil

0

Hi,

 

I'm not sure where to find the ide java options. Where is IDE_HOME?

0

I got the WebStorm license, but while activating it via JetBrains account I am getting below error.

"JetProfile connection error: SocketTimeoutException: connect timed out".

I tried the solutions mentioned above but it is not working. Any help would be appreciated.

 

0

You need to use a direct connection to http://lservice-auth.jetbrains.com/ .

If you are connecting via a proxy, it must be a proxy with transparent HTTPS support.

Please contact your proxy/network admin for help.

Another option is to obtain offline key from the account and enter it in the registration dialog: https://account.jetbrains.com/static/html/help.html#Distributinglicenseswithlicensekeys . (This will permanently switch your license to offline mode and you will not be able to use it via JetBrains Account).

0

I'm connecting via proxy, set values for it and activate my license with no troubles.

 

Now I have one big trouble and other minor:

 

The minor one is that I cannot check for updates: Connection timeout

The big ones is that I'm not update maven repositories due Authorization exception. I'm using my maven installation with my maven settings.

The problems is the IntelliJ due from command line I can compile the project but from inside I can do nothing an also I cannot not work (to many hours wasted in this issue).

Could you help me?

0

Jaume Vich, please submit a ticket to support with more details and idea.log.

0

Hello! We've got a connectivity problem when tried to add SFTP deployment to IPv6 server. We got error "No route to host". The options
-Djava.net.preferIPv4Stack=false
-Djava.net.preferIPv6Addresses=true
was added to ~/Preferences/Webstorm11/webstorm.vmoptions.
The peculiarity is that problem appears only over wifi but over wire connection works well. Another SFTP clients (for example filezilla) connect successfully. OSX El Capitan 10.11.1, Webstorm 11.

0

Could you please submit a ticket to support?

0

Serhiy, what about license server? where I can check for java settings?

0

недавно перешел на линукс. Установил Pycharm при активации выдает такую ошибку. Помогите пожалуйста

0

You have to set up a proxy if needed, connection to https://account.jetbrains.com/ must work with no issues.

0

Hello everyone

We had this error when passing on IPv6 and after a few hours of investigation, it looks like that there is a problem with AirDrop and Java.

We have solved it but doing that: 

 

Help > Edit custom VM options

Add these 2 lines:


-Djava.net.preferIPv4Stack=false
-Djava.net.preferIPv6Addresses=true

Now just disable AirDrop:

 sudo ifconfig awdl0 down

Close and reopen Phpstorm.

0

We ran into similar issues today, as our proxy requires authentication.  Using squid, we can white-list domains, in this case *.jetbrains.com but issues persisted when the application ignores the proxy altogether.  The only way around it, for the moment, is to white list the given/known IPs/hostname in our firewall and allow direct connections from the desktops through the firewall to the intended hostnames.

Ideally, we'd ensure that all of this traffic travels through the proxy, even if we bypass authentication.  If we must add exceptions to the firewall, can we get someone from Jetbrains support to comment on the known list of FQDNs required for authentication and update?

Long term, if a wiki article can be maintained to keep this list of hosts public would be fantastic.

-jofficer

Edited by Jofficer
0

Hello

 

Also if you have issues to pull/push from git repository under IPV6, try to switch the parameter:

 

"Version Control > Git > SSH executable" from built-in to Native. 

 

It fix the issue for us.

Hope this will help someone.


David

0

Please sign in to leave a comment.

Have more questions?

Submit a request