Skip to content

Reserved IPs

A reserved IP is a public address that belongs to the team, not to a Droplet. You assign it to a Droplet in its region, and when that Droplet is replaced you assign it to the new one, so DNS records and allow-lists pointing at it never change.

203.0.113.10reserved IP→ generation 1→ generation 2WebDroplet, generation 1servingWebDroplet, generation 2servingimage changes: replaced203.0.113.10reserved IP→ generation 1→ generation 2WebDroplet, generation 1servingWebDroplet, generation 2servingimage changes: replaced
When a new image replaces the Droplet, the assignment moves to the new one. The address clients use stays the same.
const ip = yield* DigitalOcean.ReservedIp("Web", { region: "nyc3" });
yield* DigitalOcean.ReservedIpAssignment("WebIp", { ip: ip.ip, dropletId: host.dropletId });

When host is replaced, its new dropletId moves the assignment on the next deploy. ReservedIpv6 and ReservedIpv6Assignment do the same for IPv6.

  • A reserved IP and its Droplet must be in the same region.
  • An unassigned reserved IP is billed by the hour.