Forum Discussion

vba_ses's avatar
vba_ses
Copper Contributor
Feb 03, 2022

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

1 Reply

  • 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.