How to Add Static IP Addresses to App Platform Components

App Platform is a Platform-as-a-Service (PaaS) offering that allows developers to publish code directly to DigitalOcean servers without worrying about the underlying infrastructure.


App Platform offers two types of static IP addresses:

  • Dedicated egress IPs: These are static IP addresses that you can use to route egress traffic through to your app. They are provisioned solely for your app, meaning they are not shared with other users on App Platform and can be used to restrict external resources to receive only outgoing traffic from your app.
  • Static ingress IPs: These are public, static IP addresses that you can use to route ingress traffic to your app, but they are shared with other users on App Platform.

Add Dedicated Egress IPs

Dedicated egress IPs are a paid feature. These addresses persist through redeployments but are removed from the app if you disable the feature or the app is destroyed.

Dedicated egress IPs have the following limitations:

  • Dedicated egress IPs are an app-level feature. When you assign them to an app, all egress (outgoing) traffic from the app’s components use the addresses assigned to the app, except for functions. Egress traffic from functions cannot use dedicated egress IPs and their own addresses can change at any time.

  • You cannot forward logs from dedicated egress IPs. Log forwarding uses its own routing to send logs.

  • We do not offer dedicated egress IPv6 addresses.

You can add a dedicated egress IPs to your app after you deploy it. To do so, in the DigitalOcean Control Panel, go to the Apps page and click your app. Click the Settings tab, scroll to the Dedicated Egress IP Addresses section, and then click the Edit button beside the section.

In the Edit menu, click the Add Dedicated Egress IP button. This assigns two IP addresses to your app and triggers a redeployment.

To remove the dedicated egress IPs, click Release Dedicated Egress IPs in the same Edit menu. This removes the IP addresses from the app and triggers a redeployment. Once the addresses have been released, the same addresses cannot be re-added to the app.

Use Public Static Ingress IPs

App Platform offers two public ingress IPs that you can point DNS records at to direct traffic to your app, free of charge.

  • 162.159.140.98 (DNS A Record Type)
  • 172.66.0.96 (DNS A Record Type)
  • 2606:4700:7::60 (DNS AAAA Record Type)
  • 2a06:98c1:58::60 (DNS AAAA Record Type)

To use these address, add a domain to your app. Once you’ve added a domain, add DNS A records to your domain’s DNS provider that directs traffic to these addresses. If DigitalOcean manages your domain, see our documentation on managing DNS records.

Once you’ve added a domain to your app and updated your domain’s DNS records, App Platform can then direct traffic received at these addresses to your app. The app doesn’t require any additional network configuration to start receiving traffic at these addresses.