GitHub uses 191 prefixes for codespaces.
Short answer
codespaces lists the addresses used by GitHub Codespaces.
Prefixes
What changed
No prefixes added or removed since we started tracking this list. Changes appear here the day after the provider publishes them.
Allowlist formats
nginx (first 5 prefixes)
allow 104.215.250.48/28; allow 104.215.251.96/28; allow 104.215.252.144/28; allow 104.215.255.144/28; allow 104.215.255.224/28; deny all;
iptables (first 5 prefixes)
iptables -A INPUT -s 104.215.250.48/28 -j ACCEPT iptables -A INPUT -s 104.215.251.96/28 -j ACCEPT iptables -A INPUT -s 104.215.252.144/28 -j ACCEPT iptables -A INPUT -s 104.215.255.144/28 -j ACCEPT iptables -A INPUT -s 104.215.255.224/28 -j ACCEPT
Generate the full list from the CSV, and refresh it on a schedule: providers add and retire prefixes often.
Sources
- GitHub: published IP ranges · checked 5 Nov 2026
- GitHub documentation