46

I'm using the latest version of Eclipse Galileo and I have to access the web from behind a proxy. I see where I can set the internet settings to manual and specify a proxy but there's no way to specify my authentication credentials that I can see and it doesn't prompt me for them either. So I'm not able to hit any plugin update sites etc... Does anyone else have this issue or know a good workaround? Or is there a better version of Eclipse to use?

jtruelove
  • 3,306
  • 3
  • 25
  • 29

9 Answers9

71

In Eclipse, go to Window → Preferences → General → Network Connections. In the Active Provider combo box, choose "Manual". In the proxy entries table, for each entry click "Edit..." and supply your proxy host, port, username and password details.

Eclipse screenshot

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Eli Acherkan
  • 6,401
  • 2
  • 27
  • 34
  • wouldn't that involve putting my password in plain text? also what is the format of the string? – jtruelove Dec 21 '09 at 16:28
  • 1. If you want Eclipse (or any tool, for that matter) to perform authentication for you, then you have to tell it your password :-) Why is that a problem? 2. The format of which string? – Eli Acherkan Dec 21 '09 at 16:35
  • 4
    Eclipse 3.4+ will automatically encrypt your proxy authentication info using a master password as part of its secure storage feature. http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.user/reference/ref-securestorage-works.htm – Noel Oct 27 '10 at 14:37
  • After these steps Eclipse Mars (4.5.1) will crash on startup. – P Varga Jan 05 '16 at 22:36
  • 1
    What to do if my computer use Automatic Configuration Script? – toha Sep 13 '16 at 07:57
42

If you have still problems, try deactivating ("Clear") SOCKS

see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=281384 "I believe the reason for this is because it uses the SOCKS proxy instead of the HTTP proxy if SOCKS is configured."

Peter
  • 421
  • 4
  • 2
10

Window → Preferences → General → Network Connections then under "Proxy ByPass" click "Add Host" and enter the link from which you will be getting your third-party plugin; that's it bingo, now it should get the plugin no problem.

stealthyninja
  • 10,343
  • 11
  • 51
  • 59
Amir
  • 109
  • 1
  • 2
  • Awesome. I wonder why it's no accepted as a correct answer. Thank you Amir. – Khanh Tran Jul 22 '16 at 18:04
  • 1
    "I have to access the web from behind a proxy" is mentioned in the question. You tell him to bypass it. How is this an acceptable answer? – KC Wong Jan 25 '19 at 02:11
10

I struggle with this constantly, as it seems it is a different solution every time a new version of Eclipse is released. Here is a solution that doesn't involve displaying your password in the .ini file.

In Eclipse go to Window > Preferences > General > security Secure Storage

In the Password tab click on the "Change Password" button Fill in the security questions. Don't make them to hard. Finish

Now go to Window > Preferences > General > Network connections. Choose "Manual" from drop down. Double click "HTTP" option and enter the Host, Port, Username and Password. Finish

Now go to Window > Preferences > General > security Secure Storage

In the Password tab click on the "Recover Password" button Fill in the security questions. Finish

Eclipse now stores your username and password

GarethViljoen
  • 119
  • 1
  • 3
  • 3
    Hello Gareth, Your Answer is not Related to this Question. – MohanRaj S Aug 13 '15 at 06:02
  • 2
    It is definitively related. This stupid Eclipse kept discarding my proxy credentials silently again and again, until I find this answer and delete the secure storage stuff. It does now remember the credentials and I can bypass the proxy. – calandoa Oct 06 '20 at 15:50
10

Here is the workaround:

In eclipse.ini write the following:

-vmargs
-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors= org.eclipse.ecf.provider.filetransfer.httpclient
-Dhttp.proxyHost=*myproxyhost*
-Dhttp.proxyPort=*myproxyport*
-Dhttp.proxyUser=*proxy username*
-Dhttp.proxyPassword=*proxy password*
-Dhttp.nonProxyHosts=localhost|127.0.0.1

After starting eclipse verify, that you use the Manual proxy method.

HTH

pihentagy
  • 5,975
  • 9
  • 39
  • 58
2

This sometime works, sometime no.

I have installed 1 Eclipse - works.

Installed second - doesn't work.

And I cann't figure why!

After some time may be found a solution.

Need delete all setting for proxy (included credentials). And re-insert for new.

After this for me getting work.

user710818
  • 23,228
  • 58
  • 149
  • 207
2

Try to fill only the HTTP schema

nadie
  • 21
  • 1
1

Add the following line at the end of your eclipse.ini file

-Dorg.eclipse.ecf.provider.filetransfer.excludeContributors=org.eclipse.ecf.provider.filetransfer.httpclient4
anup r
  • 109
  • 1
  • 15
0

For eclipse Mar1 : - Window > Preferences > General > Network connections. Choose "Manual" from drop down. Double click "HTTP" option and enter the Host, Port, Username and Password. Apply and Finish,,it will work as expected...

GRThiru
  • 1
  • 1