Forum Discussion
api.nuget.org IP RANGE
Hello,
My company's firewall blocks outgoing connections to the public nuget server. What is the ip range of api.nuget.org?
Regards,
vba_ses
2 Replies
NuGet.org does not publish fixed IP ranges for api.nuget.org but required to allow outbound HTTPS traffic to the domain name (api.nuget.org) rather than filtering by IP, because the service is hosted on Azure CDN and IPs change dynamically.
Hi, I would avoid allowlisting NuGet by IP if you can. The IPs behind api.nuget.org can change because it is served through cloud and CDN infrastructure. A more reliable approach is to allow the required NuGet domains by FQDN, such as api.nuget.org, www.nuget.org, and related package download endpoints. If your firewall does not support FQDN rules, the cleaner enterprise option is usually to mirror packages into an internal feed such as Azure Artifacts and let build agents restore from there.