Question

Can I reserve a specific IP address?

  • Posted July 23, 2013

Several services that I use require that I whitelist my IP address. If I need to destroy the whitelisted Droplet, I am under the impression that I may lose the IP. Is there any way to reserve the IP address and assign it to a new Droplet? (Similar to Elastic IPs in AWS)

Thanks, Brian

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Generally speaking, a virtual server’s IP address is static and reserved for your virtual machine until you destroy it. Rebuilding a virtual server retains the same IP you had before. <br> <br>Additionally our backend will automatically attempt to return an IP address that you have used in the past. So if you destroy a server and process a create soon after you will most likely receive the same IP address.

Youtube tutorial of how to whitelist IP address with Digital Ocean’s firewall: https://snipp.ly/l/OjLdg

DO now has a floating IP feature, using which you can reserve the ipaddress and point it to any droplet seamlessly.

You can use a service as DynDNS to get a domain for your droplet. If you then install ddclient on that droplet, the domain will always point to the correct IP, even if it changes after you e.g. restore the droplet from a snapshot.

Just for the record, I’ve destroyed/recreated one of my droplets about half a dozen times now, and each time I’ve received the same IP address. <br> <br>D.O. is great like that. :) <br> <br>I used the same server name and region each time, which might be important, and I recreated the droplet within about 2 minutes of destroying the old one, every time. I can pretty much guarantee that timing is an important factor.

But this is not the case at all. I have destroyed my virtual machine and had recreated it many times, NOT ONCE I was assigned the same ip address. If I could use ip addresses from a selected pool of ip addresses which are allocated to me, then digitalocean would be the best !. The changing ip address is a deal breaker for me

You should vote for this feature on DigitalOcean’s Customer Feedback forum <a href=“http://digitalocean.uservoice.com/forums/136585-digital-ocean/suggestions/2993170-movable-ip-from-vm-to-vm-elastic-ip-”>movable IP from VM to VM (“elastic IP”)</a>