About GitHub's IP addresses

GitHub serves applications from multiple IP address ranges, which are available using the API.

You can retrieve a list of GitHub's IP addresses from the meta API endpoint. For more information, see "Meta."

Note: The list of GitHub IP addresses returned by the Meta API is not intended to be an exhaustive list. For example, IP addresses for some GitHub services might not be listed, such as LFS or GitHub Packages.

These ranges are in CIDR notation. You can use an online conversion tool such as this CIDR / VLSM Supernet Calculator to convert from CIDR notation to IP address ranges.

We make changes to our IP addresses from time to time. We do not recommend allowing by IP address, however if you use these IP ranges we strongly encourage regular monitoring of our API.

For applications to function, you must allow TCP ports 22, 80, 443, and 9418 via our IP ranges for github.com.

Further reading

Did this doc help you?Privacy policy

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.