I figured out finally that:
Avira Anti-Virus Software was blocking the network requests by eclipse. After deactivating "enable web protection" in the Anti-Virus, the stupid Eclipse was able to update itself.
Question
I have downloaded the latest eclipse version, eclipse kepler.
But when i try to access the Marketplace inside eclipse or try to install ADT plugin for Android, it gives me this creepy error which is driving me crazy:
Cannot open Eclipse Marketplace
Cannot install remote marketplace locations: Connection failed
This is most often caused by a problem with your internet connection. Please check your internet connection and retry.
Unable to read repository at http://marketplace.eclipse.org/catalogs/api/p.
Connection reset
Connection failed
This is most often caused by a problem with your internet connection. Please check your internet connection and retry.
Connection reset
Solution 2
I figured out finally that:
Avira Anti-Virus Software was blocking the network requests by eclipse. After deactivating "enable web protection" in the Anti-Virus, the stupid Eclipse was able to update itself.
OTHER TIPS
please put below line to eclipse.ini in the last it worked for me -Djava.net.preferIPv4Stack=true
If you are sitting behind a corporate network it could be filtering out requests coming from eclipse. Switching to 3G on my phone made it work for me.
This frustrated me for a while before I stumbled upon this link:
https://www.eclipse.org/forums/index.php/t/783720/
It says clear SOCKS entry in Network connections and be in manual Active Provider.
The SOCKS entry was already clear but after clicking on clear again, it just worked so worth a shot.