Home/Q&A/Can a self-hosted runner connect to GitHub without a fixed public IP?

Can a self-hosted runner connect to GitHub without a fixed public IP?

Updated · airankrush

Direct answer

Yes. The runner connects out from the machine to GitHub on port 443. It does not depend on a fixed address and needs no inbound port. Only organizations with an IP allow list enabled run into trouble.

Basis

  • GitHub's documentation says that a self-hosted runner connects to GitHub to receive job assignments and to download new versions of the runner application, and that the host must be able to make outbound HTTPS connections over port 443 (Self-hosted runners reference, checked 2026-11-12).
  • The GitHub Enterprise Server edition of the documentation goes further on the mechanism: the runner opens a connection to the server using HTTPS long polling, and only an outbound connection from the runner to the server is needed, with no inbound connection from the server to the runner.
  • Our machines use US residential broadband. The broadband line and public exit may be shared with other machines, and this is not a fixed IP. That makes no difference to a program that connects outward from the machine; it is the same network situation as installing a runner on your computer at home.
  • The same GitHub document also warns that if an organization or enterprise account has an IP address allow list enabled, the runner's exit address must be added to the list.

Information as of .

Boundaries: when the answer is different

An IP allow list is exactly where this does not work: the exit address is not fixed and may be shared with other machines, so adding it to a list is neither stable nor appropriate. For the same reason, builds that need to reach private package registries or internal APIs that only accept fixed source addresses will be blocked. Any design that needs something outside to connect in to this machine is unsuitable, for example a controller connecting over SSH, or running a service on the machine for outsiders to download artifacts from. You may not change the network configuration for this, and do not install tunneling or proxy tools to expose ports to the outside. If a fixed exit is a hard requirement, check with support before ordering whether any workable option exists.

How to do it

  1. Confirm your organization has no IP allow list enabled, or that the administrator can accept the adjustment involved.
  2. List every external address the build needs to reach and confirm one by one that none restricts source addresses.
  3. Install and register the runner and see the Idle status on the GitHub page.
  4. If the connection is in doubt, run the runner's built-in connectivity self-check with config.sh --check; the parameters are in the official troubleshooting documentation.
  5. Send build artifacts out by uploading them. Do not design it so that something outside fetches them from the machine.

Use case

This question belongs to the use case: Rented Mac mini as an always-on build machine for small teams? Count your build minutes first

Other questions in the same use case:

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All Q&A