Platform
Fly.io static outbound IP
Outbound addresses on Fly Machines change unless you allocate static egress IPs. The current mechanism is app-scoped: one IPv4 and IPv6 pair per region, shared by the Machines of that app in that region, and kept across deploys.
. If a provider has moved a setting, their documentation is the authority.
What you actually get
By default, IPv4 egress is NAT'd on the host and can change when a Machine moves. Many apps prefer IPv6 when the destination has an AAAA record, so the address a partner observes may be v6 even when you were thinking about v4. Static egress allocates both.
fly ips allocate-egress --app <app> -r <region>allocates one pair for that region. Machines only use egress IPs allocated in their own region, so an app in two regions needs two pairs.- You can allocate more than one pair in a region. Machines pick among them, which means the partner whitelist has to include every pair.
- Each static egress IP supports up to 64 Machines. Past that, allocate another.
- A Machine can open up to 1024 concurrent connections to a single destination IP.
- IPv4 egress is billed. IPv6 is included. Fly's egress page has the current rate; do not budget from a blog post.
- Legacy machine-scoped egress IPs still exist and are no longer the recommended path. App-scoped addresses survive Machine replacement.
How to allowlist it
- 1List the regions where Machines actually run. An unused region does not need an egress IP, and a region you forgot will keep using an unstable address.
- 2Allocate a pair in each of those regions and accept the prompt, or pass --yes once you have read the cost.
- 3Run fly ips list and copy both families. If the partner's whitelist is IPv4 only, force the client to v4 or confirm the destination has no AAAA record. Otherwise the partner will see the v6 address and reject it.
- 4Add every allocated address to the allowlist. Release a pair with fly ips release-egress only after the partner has stopped expecting it.
- 5Redeploy or restart so running Machines pick up the allocation, then confirm with a request from the app, not from your laptop.
Ingress IPs (fly ips allocate-v4) are a different product. They are how the internet reaches you. They are not the source address your app uses outbound.
What the allowlist trusts
The whitelist admits the app in that region. Every Machine, every process, any destination. Fly does not attach a workload identity or a destination policy to the egress IP. Jobs on GitHub-hosted runners are unaffected; those belong on the GitHub Actions comparison.
Sources
Related
A stable Fly egress IP still admits the whole app
Allocate egress IPs when a Fly app must sit on a partner allowlist. Proofbound is in development for GitHub Actions and Kubernetes, with a policy per workload and a record per connection.
One email when early access opens.