0

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????

coure2011
  • 40,286
  • 83
  • 216
  • 349

3 Answers3

7

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

setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true
coure2011
  • 40,286
  • 83
  • 216
  • 349
0

Are you behind a proxy server? Go to Tools > Options > General and try to change the network settings according to your network config. EDIT: It may also be a firewall issue.

vikasing
  • 11,562
  • 3
  • 25
  • 25
0

Are you using a proxy server, because if you are then you will need to use a ProxyAuthenticator java class which will can be called within your Java class. This should allow your class to access the Internet.

However, it may be worth checking your NetBeans Internet settings (Tools -> Options -> General) and checking whether a HTTP Proxy authentication is being used. Even so, a ProxyAuthenticator Java class may still be required (assuming a Proxy server is being used). Please see Authenticated HTTP proxy with Java

Community
  • 1
  • 1
blackpanther
  • 10,998
  • 11
  • 48
  • 78