Search code examples
javawindows-8netbeans-7

Netbeans not able to connect to internet


I am using windows 8 (64bit) but not able to get access to internet using netbeans. When I am trying to update via Help > Check for Update I am getting

Check your network connection, verify that your proxy settings are configured correctly in the NetBeans IDE, or try again later.

When I am trying to access some url with a program in java I am getting error

connection refused: Address is invalid on local machine

whats going on here????


Solution

  • I need to force Java to use IPv4, to do so set it by command

    setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true