How to configure Proxy Settings in Eclipse

Often times, Eclipse IDE may need access to the Internet for some plugins install and update. If your computer is behind a proxy server, most company do, Eclipse will keep hanging and take very long time to process and failed at the end. You have to configure the proxy settings in Eclipse in order to pass through it.

Howh to configure Proxy Settings in Eclipse

1) In Eclipse IDE, select “Window –> Preferences”

2) Preferences box prompt out, choose “Network Connections”.

3) Select “Manual” from Action Provider drop down list

How-to-configure-Proxy-Settings-in-Eclipse-1

4) Select Http in the List and click “Edit” button

5) Fill in the proxy server host and port number, (fill in the username and password if any)

How-to-configure-Proxy-Settings-in-Eclipse-2

6) Ok, Done.

Now, Eclipse is able to connect to Internet and pass through Proxy server.

64 comments on “How to configure Proxy Settings in Eclipse

  1. 1.When I am trying to create new maven project, getting the below error:

    Could not resolve archetype org.apache.maven.archetypes:maven-archetype-quickstart:1.1 from any of the configured repositories.
    Could not resolve artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1

    2.When trying to access eclipse marketplace getting below error:

    MarketplaceDiscoveryStrategy failed with an error
    Cannot complete request to https://marketplace.eclipse.org/api/p?client=org.eclipse.epp.mpc.core&os=win32&platform.version=4.17: Unable to read repository at https://marketplace.eclipse.org/api/p?client=org.eclipse.epp.mpc.core&os=win32&platform.version=4.17.
    Unable to read repository at https://marketplace.eclipse.org/api/p?client=org.eclipse.epp.mpc.core&os=win32&platform.version=4.17.
    PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

    My company is not using proxy. But when I use at home eclipse works fine. Please guide me through it

    Reply
    1. my company is using proxy and I have same issues as you described. I dont know solution yet

      Reply
    2. we use proxy and I get the same errors you got. Going through these steps did not resolve the issue for me.

      Reply
  2. thanks you very much. Amazing skills. Amazing post. What a release.

    Reply
  3. Hello,

    I chose manual in the menu but all the boxes are already selected and I can’t deselect any of them. What could be the reason?

    Reply
  4. Dear Mkyong, you are the best.. you are the savior when I get stuck…. Thanks to @ibo for his further contribution in the comments section. After removing the localhost and 127.1.1.0 entries from proxy bypass. and after restarting eclipse, it worked. This is albeit strange that without removing these entries, the traffic goes directly and not through proxy. Thus, proxy IP address, port information doesn’t come into picture. Hence, these entries requires removal.

    Reply
  5. Thank you. Useful. I fogot to restart so I try many times and not work.

    Reply
  6. Eclipse’s proxy configuration requires both HOST and PORT. But what about auto proxy configuration *scripts*? In other words, if IT provides proxy configuration script (let’s say http://myhost.com/autoproxy.cgi) – how can that be used in Eclipse? I was not able to use such script …

    Reply
  7. Thank you so much Mkyong! Everytime I have a question I find the answer on your page!

    Reply
  8. I did use authentication, so maybe thats why i had to restart..?

    Reply
  9. Dont forget to restart eclipse. For me it only worked after setting proxy settings, and then restarting eclipse. Thanks for the tutorial!

    Reply
  10. Thank you!
    Workes like a miracle. First time ever, i was able to enter the eclipse marketplace from behind a firewall.

    Reply
  11. I was having trouble with Eclipse Marketplace, turns out the proxy settings did it. Thank you for this.

    Reply
  12. proxy bypass, you have to remove them, localhost and 127.1.1.0, and it will work.

    Reply
    1. removing proxy bypass (both localhost and 127.1.1.0) did not resolve issue for me which is
      “PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target”

      Reply
  13. you have to delete localhost and 127.1.1.0, it will work. it works with me.
    withtout server and port,… only delete down , the localhost and 127.1.1.0
    have a nice day,

    Reply
    1. not solving issue for me, deleted them and restarted eclipse, same issue
      “PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target”

      Reply
  14. Hi, I am not able to still connect through eclipse. I am not able to uncheck the socks connection and keeping it manual and running it gives an error saying UnreachableBrowserException. Error contacting the remote browser. It may have died. Is there any other thing or option to configure??

    Reply
  15. This works quite perfect. Thanks alot

    Reply
    1. Hi Marek Sebera,

      After three days of fiddling this really worked!!!
      Kind of you.

      Reply
  16. hello, this is nice tutorial. thanks a lot

    Reply
  17. Hello, nice documentment, how do you trace the proxy connection from eclipse?
    What trace strings should we set in the .options file?
    should that be org.eclipse.core.net/debug=true
    and org.eclipse.core.net.proxy/debug=true?
    Thank in advance

    Reply
  18. Just interesting.
    When i want to update eclipse i set “active provider” to “manual”.
    If i want to connect to inner svn server i should check “active provider” to “native”.
    Then all works fine.
    Is there any way to do it automatically?

    Reply
  19. hello,
    please ,can you help me on how to configure eclipse 3.7 indigo to connect to the internet through proxy in ubuntu 11.10?.I have been trying and googling without success.
    how to disable socks port?.
    thank you for your help.

    Reply
  20. After I try to configure proxy settings with the above steps and then I configure the application server, the server is in stopped, synchronised state.

    Sm this approach is not successfull.

    Please suggest and alternative..

    Reply
  21. I wonder if there is any way of configuring eclipse proxy settings via an autoproxy configuration script

    Reply
    1. Hi Enrico,

      Just wanted to know if you figured this out….I am having the same issue…Although all major browsers have this capability to connect via an autoproxy configuration script, I did not see Eclipse is capable of that yet (using Eclipse Helios). I can browse using a browser but cannot connect using Eclipse. This is particularly a pain if you are using Maven2 with Eclipse and there is no local repository yet…
      Please do let me know if you found any work around.
      Thanks,
      Vikram

      Reply
      1. Hi Vikram,
        You will just need to set the proxy manual as defined in the autoconfiguration script. To do this just download the script by copying the script location (like http://mycompany.com/proxy.pac) in your webbrowser and open the script in a text editor (it is plain text file). Somewhere in the script it will say something like return “PROXY your.proxy.com:8080”
        hope this helps

        Reply
        1. Hello Andries,
          I’m using eclipse in my company PC, trying to access marketplace behind the proxy
          after series failure attempts, followed your instructions to find proxy address, it worked like champ, now able connect and install plugins.
          Thanks a lot for the post
          Mohan

          Reply

Leave a Comment

Your email address will not be published. Required fields are marked *