Setting a Proxy

See Also

If you want to use the Update Center or access the Internet through the IDE, but your system is behind a firewall or you use a proxy server, you need to configure the IDE with your proxy settings.

To use an HTTP proxy:

  1. From the main menu, choose Tools > Options from the main menu and click General in the left pane of the Options window.
  2. Select HTTP Proxy as the proxy type.
  3. Type the proxy host name and the proxy port number.
  4. Click OK.

To use a SOCKS proxy:

To run the IDE using a SOCKS proxy, you must pass the SOCKS proxy host and proxy port parameters to the JVM software when you start the IDE. On Microsoft Windows machines, use the IDE-HOME/etc/netbeans.conf file to pass the parameters. On UNIX and Linux machines, you can write a wrapper shell script.

On a Microsoft Windows machine:

  1. In the IDE's installation directory, expand the etc directory.
  2. If an netbeans.conf file is not there, create one.
  3. Open netbeans.conf in a text editor and type:

    -J-DsocksProxyHost=SOCKS-SERVER -J-DsocksProxyPort=1080

    For SOCKS-SERVER, use the host name of your SOCKS proxy.

  4. Save netbeans.conf and close it.
  5. Restart the IDE.

On a UNIX or Linux machine:

  1. Change directory to your IDE-installation/bin directory.
  2. Create a new shell script file.
  3. Open the new shell file in a text editor and type:

    runide.sh -J-DsocksProxyHost=SOCKS-SERVER -J-DsocksProxyPort=1080

    For SOCKS-SERVER, use the host name of your SOCKS proxy.

  4. Save the shell script and close it.
  5. Restart the IDE with the new shell script.
See Also
Accessing Local Files Through a Proxy
Using the Options Window

Legal Notices