Which port is used by NuGet while downloading package through Visual Studio

visual studio firewall ports
visual studio installer proxy
visual studio set proxy
nuget proxy
nuget version
dotnet nuget
nuget registry
what ports does visual studio use

I am using VS 2010 (Package Manager Console) to download NuGet (2.5.40416.9020/Latest) packages. It uses URL https://nuget.org/api/v2/. It gives me error as below.

Install-Package : An error occurred while loading packages from'https://nuget.org/api/v2/': The remote name could not be resolved: 'nuget.org'
At line:1 char:16
+ Install-Package <<<<  Rx-Main
    + CategoryInfo          : NotSpecified: (:) [Install-Package], InvalidOperationException
    + FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PowerShell.Commands.InstallPackageCommand

But when i access the same URL via browser then i am able to browse the site. I am on corporate network so firewall might block the port (Other than 80 and 443).

So which port is used by NuGet while downloading packages via Package Manager Console (VS 2010)?

https://nuget.org/api/v2/ means port 443 (the standard port for HTTPS)

If you're on a corporate network, port 80 and 443 are usually bounced through a proxy server.

Most likely, NuGet is not using your proxy settings for some reason, so it cannot find the proxy server and are stopped by the corporate firewall.

Remote Debugger Port Assignments, that already exist on the computer, improving the performance of install, update, and restore operations. In this video, we'll learn how to Install Nuget Package Offline in Visual Studio from downloaded file manually using package manager console. With the evolution of the .NET framework in 2013 our

Go to file Program Files\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe.config

Set ipv6 enabled from true to false

                <ipv6 enabled="false"/>

How to manage the global packages, cache, temp folders in NuGet , How do I change the source of a NuGet package? Visual Studio creates the project, which opens in Solution Explorer. Add the Newtonsoft.Json NuGet package. To install the package, you can use either the NuGet Package Manager or the Package Manager Console. When you install a package, NuGet records the dependency in either your project file or a packages.config file (depending on the project format).

In my case, adding the package source references (URLs that you are using to get the packages) manually in the Nuget.Config file (\users*\appdata\Roaming\Nuget\Nuget.Config) resolved the issue.

Make sure that all the nuget packages that you are referring in the solution were added to the above Nuget.Config file.

For some reason, the references got removed from my config file and i started getting this exception. Adding them manually to the config file resolved the issue in my case.

Common NuGet configurations, Review the domain URLs, ports, and protocols that you might want to add to an allow Because the Visual Studio Installer downloads files from various domains and want when you use Visual Studio or Azure Services behind a firewall or proxy Required for searching for NuGet packages and versions. The NuGet Gallery is the central package repository used by all package authors and consumers.”. Install Nuget Package using ‘Nuget Package Manager’ Step 1: Right click on your project and select “Manage Nuget Packages”. Step 2: Now the “Nuget Package Manager” window will appear with the list of nuget packages.

I was unable to download the nugget package through the console, it was giving error like:

"Unable to connect remote server"

I followed the above steps and Set ipv6 enabled from true to false. It resolved my problem.

C:\Program Files\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe.config

         <ipv6 enabled="false"/>

Install and use behind a firewall or proxy server, A relative path can be used in project-specific nuget.config files. Look in global package folder to see if the package/version is already downloaded. Automatically check for missing packages during build in Visual Studio --> <add where company-squid is the host and 3128 is the port, which on this  It means that NuGet is trying to download the package, but the proxy is blocking him. Open the file C:\Users\[YOUR_USER_NAME]\AppData\Roaming\NuGet\NuGet.Config and add inside the <configuration> <\configuration> tag the following: replacing: Open Visual Studio and NuGet should automatically restore the packages.

nuget.config File Reference, NuGet solves the issues of knowing when an update is available of their packages only receive the required binaries in the downloaded  When you create a new MVC3 project in Visual Studio, the project comes with some NuGet packages autoinstalled. These are jQuery, jQuery UI, Modernizr, and Entity Framework. The reason this is a big deal for you and me is this: jQuery and Modernizr are open-source projects that have frequent releases,

NuGet Inside the Firewall -- Visual Studio Magazine, System.IO.Ports.SerialPort. When using NuGet 3.x this package requires at least version 3.4. There is a newer prerelease version of this package available. Restore packages manually using Visual Studio. Enable package restore by choosing Tools > Options > NuGet Package Manager. Under Package Restore options, select Allow NuGet to download missing packages. In Solution Explorer, right click the solution and select Restore NuGet Packages.

System.IO.Ports 4.7.0, Use Bogus to create UIs with fake data or seed databases. Get started by using Faker class or a DataSet directly. Package Manager .NET CLI; PackageReference  In Visual Studio, from the Tools menu, select NuGet Package Manager | Manage NuGet packages for solution Scroll or use search to locate the NUnitLite Version 3 and install it. The package should be referenced by each of your test assemblies, but not by any others. As a result of your installation,

  • But 443 is not blocked on firewall and i am able to browse the nuget.org site, but it gives me error when i run command through Package Manager Console.
  • @vijay I'm fairly sure the browser you're using has a proxy set, and NuGet has not picked those settings up automatically. There's an example here on how to set proxy settings up for NuGet 1.4 or later.
  • Thanks @Joachim for you reply. I have set the proxy address. But now i am getting new error. The remote server returned an error: (502) Bad Gateway.
  • @vijay Sounds like there's still something wrong with the proxy then. Possibly, you've configured the HTTP proxy for HTTPS or the reverse, or the proxy does not support all proxy commands required for NuGet.
  • Thanks @Joachim its resolved now. I have updated proxy settings for visual studio config as well and its started working. :) Thanks once again.
  • 4 hours later. Thanks for posting!
  • My problem was that the company proxy settings were added to this file I believe via a NuGet.config file that I was working with in a solution. I'm guessing that it took those proxy settings and updated the one under my profile. It appears that the only way to back it out is to manually edit this file. This setting was blocking me from getting packages from our internal company feed.