Cannot open Eclipse Marketplace Cannot install remote marketplace locations: Cannot resolve host

Vishal picture Vishal · Jan 18, 2017 · Viewed 91.1k times · Source

I am using eclipse Kepler version and trying to install Sonar plugin from Eclipse marketplace. But I am getting below error

Cannot open Eclipse Marketplace Cannot install remote marketplace locations: Cannot resolve host

This is most often caused by a problem with your internet connection. Please check your internet connection and retry. Unknown Host: http://marketplace.eclipse.org/catalogs/api/p marketplace.eclipse.org Cannot resolve host

This is most often caused by a problem with your internet connection. Please check your internet connection and retry. marketplace.eclipse.org

I tried below things as per solution suggested by some people.

  1. Go to Window-> Preferences -> General -> Network Connection. And change below settings Active Provider-> Manual-> and check---> HTTP, HTTPS and SOCS. After restarting eclipse still the problem persisted.
  2. I tried connecting to google.com from Eclipse Internet Explorer and able to see google homepage
  3. Added line in eclipse.ini file -vmargs -Djava.net.preferIPv4Stack=true But still same issue

I am really frustated by this issue and couldn't find any help anywhere. If anyone has faced this issue and has an effective resolution, please assist.

Below is the snap of Proxy details enter image description here

Answer

Harshit Saxena picture Harshit Saxena · Feb 3, 2018

The solution is:

  1. Go to-Window->Preferences->General->Network Connections

  2. Choose "Active Provider" To "Direct"

  3. then click "apply" and then "ok".

It will Start Opening.