Nuget connection attempt failed "Unable to load the service index for source"

DarthVader picture DarthVader · Dec 16, 2016 · Viewed 149.4k times · Source

While trying to connect to Nuget, getting the error below and then I am unable to connect:

[nuget.org] Unable to load the service index for source https://api.nuget.org/v3/index.json. An error occurred while sending the request. Unable to connect to the remote server A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 68.232.34.200:443

I am able to access to https://api.nuget.org/v3/index.json on my browser.

It is not a duplicate. The other answers doesn't solve my problem.

Answer

Eddie Chen - MSFT picture Eddie Chen - MSFT · Dec 21, 2016

You need to add proxy settings into Nuget.Config file. Refer to this link for details: Nuget Config Section & Nuget Proxy Settings.