Skip to main content

Outbound IP Addresses

When your service connects to something outside ComputeSphere, such as a managed database with a firewall, an email provider or a partner's API, the other side sees the connection come from your region's outbound IP range. Add the range for your environment's region to that system's allowlist.

  • us-east-1, US East (Virginia): 52.247.113.114/31
  • eu-north-1, EU (Sweden): 4.223.89.116/31
  • us-west-1, US West (Arizona): 20.38.7.128/31

Each range is a /31, which is two addresses. Allowlist the whole range, not a single address: your services' connections can leave from either one.

Build addresses​

Builds connect out from their own range, separate from your services' range. Add it when a build fetches from something behind an allowlist, such as a private package registry or a private Git server.

  • All regions: 20.119.222.210/31

Every build on ComputeSphere shares these addresses, whatever its region. A service that runs your own image has no build, so it needs no build addresses.

Before you allowlist​

  • Shared by the whole region. Every service in a region, on every account, connects out from that region's range. Allowlisting it lets in the whole region, not only your account. Keep the other side's own sign-in or API key in place: the allowlist narrows who can connect, it doesn't prove who is connecting.
  • Never changes. A published range stays the same. You won't need to update an allowlist because an address moved.
  • New ranges are announced 14 days ahead. If a region adds a range, it's announced on status.computesphere.com at least 14 days before any traffic leaves from it. Add it to your allowlists during that window.
  • Every service type. Web services, private services, background workers and cron jobs in a region all connect out from its range.
  • One region per environment. An environment's services use its region's range. If you run environments in two regions, allowlist both ranges.
  • Outbound only. These are the addresses your services' requests come from, not where your services are reached. For inbound traffic, see Custom Domains.

Find your region's range​

Console​

Open a service and go to its Settings tab, Networking section:

  • Web services, private services, background workers and cron jobs: Outbound IP addresses lists the range for the service's region, with a copy button. A service built from source also shows a Build addresses line.
  • Static sites: a Build addresses card only. A static site runs no code of its own that connects out.

API​

GET /v2/regions lists each region with its outbound_ips and build_outbound_ips:

curl --request GET \
  --url https://api.computesphere.com/v2/regions \
  --header "Authorization: Bearer YOUR_API_TOKEN"
{
  "object": "list",
  "items": [
    {
      "object": "region",
      "name": "us-east-1",
      "display_name": "US East (Virginia)",
      "available": true,
      "outbound_ips": ["52.247.113.114/31"],
      "build_outbound_ips": ["20.119.222.210/31"]
    },
    {
      "object": "region",
      "name": "eu-north-1",
      "display_name": "EU (Sweden)",
      "available": true,
      "outbound_ips": ["4.223.89.116/31"],
      "build_outbound_ips": ["20.119.222.210/31"]
    },
    {
      "object": "region",
      "name": "us-west-1",
      "display_name": "US West (Arizona)",
      "available": true,
      "outbound_ips": ["20.38.7.128/31"],
      "build_outbound_ips": ["20.119.222.210/31"]
    }
  ]
}

A region that has no published range yet comes back without outbound_ips. Every region lists the same build_outbound_ips.

CLI​

csph regions list shows both lists, in the outbound ips and build addresses columns, and as outbound_ips and build_outbound_ips with -o json or -o yaml (CLI 0.22.0 or later).

Limits​

  • No per-account addresses. A range belongs to its region, not to your account. Addresses that only your traffic uses aren't available today.
  • IPv4 only. Outbound connections leave over IPv4.
  • Build addresses are shared by every region. Allowlisting them lets in builds from every account, in every region. Keep the registry's own credentials in place.

What's next​

  • Private Network: service-to-service traffic inside an environment.
  • Custom Domains: bring your own domain for inbound traffic.
  • Networking: who can reach your services inbound.
  • Security: how environments and accounts are isolated.
  • Status: where range announcements and maintenance windows are posted.