Defining Proxy Connections to Remote Resources

If traffic between your corporate network and the internet is monitored, access to certain tools (cURL, Maven, Git, Eclipse, and so on) may be blocked by the proxy.

About This Task

You may need to configure your proxy settings to access remote resources. The values for your proxy settings vary depending on your location and network configuration. Contact your IT administrator for the correct proxy settings.

Procedure

  • For Windows:
    1. On the Start menu, right-click Computer > Properties.
    2. Click Advanced system settings.
    3. Click the Advanced tab.
    4. Click Environment Variables.
    5. Click New and enter the Variable Name and Variable Value for each variable.
      Set these values:
      Variable NameVariable Value
      HTTP_PROXY<host>:<port>
      HTTPS_PROXY<host>:<port>
      http_proxy<host>:<port>
      https_proxy<host>:<port>
      no_proxy<domain>
      Note: HTTP_PROXY and HTTPS_PROXY variables are case-insensitive on Windows.
      To set the environment variables for the current session, enter the following from a command prompt:
      set HTTP_PROXY=http://<host>:<port>
      set HTTPS_PROXY=http://<host>:<port>
      set no_proxy=<domain>
      For example:
      set HTTP_PROXY=http://proxy.mycompany.com:8080
      set HTTPS_PROXY=http://proxy.mycompany.com:8080
      set no_proxy=mycompany.com
  • For Mac OS:
    • Define system proxy connections to remote resources by adding the following entries to the ~/.profile, ~/.bash_profile or ~/.bashrc file.
    For example, MacOS settings should reflect the following changes to the ~/.bash_profile file:
    
    export HTTP_PROXY=http://<host>:<port>
    export HTTPS_PROXY=http://<host>:<port>
    export http_proxy=http://<host>:<port>
    export https_proxy=http://<host>:<port>
    export no_proxy=<domain>
    
  • Additional Information: