npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

registry.npmjs.org ip address range

Hi,
I would like to know what are the server IP’s of NPM for opening our firewall.

Thanks,
Prasad.CH


Thanks for getting in touch. We get this question pretty regularly in support. We don’t own the IP ranges; they belong to our CDN provider. These IPs do change, though infrequently.

For this reason, I’d strongly suggest whitelisting based on domain name rather than IP range. You can find more info about the registry domain ( https://registry.npmjs.org/ ) here: https://docs.npmjs.com/misc/registry

173.245.48.0/20
103.21.244.0/22
103.22.200.0/22
103.31.4.0/22
141.101.64.0/18
108.162.192.0/18
190.93.240.0/20
188.114.96.0/20
197.234.240.0/22
198.41.128.0/17
162.158.0.0/15
104.16.0.0/12
172.64.0.0/13
131.0.72.0/22

IPv6:
2400:cb00::/32
2606:4700::/32
2803:f800::/32
2405:b500::/32
2405:8100::/32
2a06:98c0::/29
2c0f:f248::/32

For an updated list of IP addresses from our CDN, please see this link: https://www.cloudflare.com/ips/

Thanks again!
-Kiera