Skip to main content

About GitHub's IP addresses

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

You can retrieve a list of the IP addresses for GitHub.com from the meta API endpoint. For more information, see "REST API endpoints for meta data."

If you access GitHub on a subdomain of GHE.com, the meta endpoint does not return IP ranges for your subdomain. See "Network details for GHE.com."

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 IP addresses are used by GitHub to serve our content, deliver webhooks, and perform hosted GitHub Actions builds.

These ranges are in CIDR notation. You can use an online conversion tool to convert from CIDR notation to IP address ranges, for example: CIDR to IPv4 conversion site.

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, and 443 via our IP ranges for github.com.

Further reading