Question

How to keep my droplet IP if I want to remove it and install?

I must keep the IP of the droplet because it is given to a software to authorise the ip.

I tried to rebuilt the Ubuntu, but it is not working because I messed up with my firewall settings.

How to remove this droplet and create a new one, but keep my IP?


Submit an answer


This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

KFSys
Site Moderator
Site Moderator badge
January 30, 2023

Hi @mikewu,

Rebuilding a Droplet wipes the Droplet’s disk and replaces it with an image you select. This is an option if you’re concerned that your Droplet has been compromised, you’ve lost access to it, you’d like to switch operating system versions, or you’d like to completely replace the contents of a Droplet.

Basically, what you need to do is go to your Control Panel --> On your Droplet Go to the Destroy Tab --> Select the Rebuild Droplet —> Use an image of your choosing.

Now, you mentioned that you already tried to rebuilt it by messed up your firewall settings. What settings are those? Additionally, you can always remove or update your firewall settings.

If you don’t have access to your Droplet, you can use the recovery console, enter the Droplet and fix the firewall from there:

https://docs.digitalocean.com/products/droplets/how-to/recovery/recovery-console/

alexdo
Site Moderator
Site Moderator badge
January 29, 2023

Hello @mikewu

You can rebuild the droplet from the snapshot to keep the current IP address. You can use any image in your account that runs an OS that is in the same family as the Droplet you’re rebuilding, including backups, snapshots, custom images, 1-Click Applications, and base OS distributions we provide. If you’re trying to rebuild from a backup, you need to convert the backup into a snapshot before rebuilding your Droplet.

Rebuilding a Droplet wipes the Droplet’s disk and replaces it with an image you select. This is an option if you’re concerned that your Droplet has been compromised, you’ve lost access to it, you’d like to switch operating system versions, or you’d like to completely replace the contents of a Droplet.

You can also assign a floating IP to the droplet so that even if the droplet is destroyed, you can assign the Floating IP to another droplet.

To learn more about the floating IPs, you can check this guide: https://docs.digitalocean.com/products/networking/floating-ips/

I hope this helps!

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up