A floating IP is a static IPv4 address that you reserve in one region and attach to any of your servers there. Point DNS at it once, then move it to a replacement server instead of changing DNS. Each address costs $2.00 per month, and an account can hold up to 10.
Reserve an address
- Click Floating IPs in the sidebar, under Networking.
- Click Reserve an IP (on an empty page, Reserve your first IP).
- Choose the Region. Pick the region of the servers that will use the address: it can only be attached to servers in that region.
- Click Reserve for $2.00/mo. The first month is charged from your balance right away, with an invoice. If the balance is too low, the console takes you to Add funds first.
- The new row shows allocating… with the status Allocating. Once the address is ready, the status turns Active and the address appears.
If an address cannot be allocated, the reservation is canceled and the $2.00 goes back to your balance automatically. A notification tells you, and the row leaves the list.
Attach it to a server
- On the Floating IPs page: next to an Active address that is not attached, choose a server in the menu and click Attach. Only servers in the same region that are running or off are listed.
- On a server: open its Networking tab. The card Floating IPs in followed by the city lists the addresses of that region, with Attach here or Detach.
The console answers "Assignment requested." The change runs as Assign floating IP in the server's Activity tab.
Add the address to the operating system
Attaching routes the address to your server, but the console does not configure it inside the operating system. Do it yourself on every server that may hold the address. First, find the name of the network interface that carries the main IPv4:
ip -br addr show
For a quick test, add the address until the next reboot (replace eth0 and the address with yours):
ip addr add 198.51.100.77/32 dev eth0
To keep it after reboots on Ubuntu, add it with netplan. Create /etc/netplan/60-floating-ip.yaml, using the same interface name as the existing file in /etc/netplan/:
network:
version: 2
ethernets:
eth0:
addresses:
- 198.51.100.77/32
Then apply it. netplan try rolls the change back after 120 seconds unless you press Enter to keep it:
chmod 600 /etc/netplan/60-floating-ip.yaml
netplan try
On other systems:
- AlmaLinux, Rocky Linux and other NetworkManager systems: find the connection with
nmcli connection show, then runnmcli connection modify "<connection>" +ipv4.addresses 198.51.100.77/32andnmcli connection up "<connection>". - Debian with ifupdown: add the address to the interface in
/etc/network/interfaces. - Windows: add it as a second IP address of the network adapter, with the subnet mask
255.255.255.255.
Check from another machine with ping 198.51.100.77, or by opening the service that listens on it.
Move it to another server
- Deploy or pick the new server in the same region and add the address to its operating system, as above.
- Open the new server's Networking tab and click Attach here next to the address. You can also click Detach on the Floating IPs page, then attach it to the new server.
- Traffic reaches the new server once the Assign floating IP action shows Done.
Detach, release and billing
- Detach takes the address off its server. It stays on your account and keeps billing.
- Release gives it back for good, after the prompt "You may not get the same address back." The status shows Releasing, then the row disappears. The month already paid is not refunded.
- Deleting a server detaches its floating IP; the address stays reserved on your account.
- The Paid until column shows the renewal date. On that date, $2.00 is taken from your balance for one more month, with an invoice. If the balance cannot cover it, the address is kept for 7 days past that date, then released automatically and you get a notification.
- Charges appear in Billing under Transactions, as "Floating IP in FRA1, first month" and then "Floating IP 198.51.100.77, 1 month until Jan 18, 2027". Each one has its invoice under Invoices.
- To close your account, release every floating IP first and wait until it leaves the list. Until then the console answers "Release your floating IPs first, then close the account." See Close your account.
Troubleshooting
- "Choose a running server in the same region.": the server is in another region, still deploying or suspended.
- "An account can hold 10 floating IPs.": release an address you no longer use.
- Attached but no answer: the address is missing from the operating system, or a firewall blocks the port. Check
ip -br addr showand your rules in Create and apply cloud firewalls. - Failover across regions: a floating IP never leaves its region, so switch DNS between regions instead.
- Floating IPs are managed in the console only: the API reference has no endpoint for them.
Related: Your server IPv4 and IPv6 addresses.