advaya
By:
advaya

If I destroy my droplet and recreate a new one will I get the same old IP address ?

December 11, 2014 2.4k views

My droplet is compromised and DO support suggested me to destroy and recreate new droplet. If I destroy my droplet and recreate a new one will I get the same old IP address ? I can't change my IP as it is used by many clients.

1 Answer

No, once you give up the IP, there is no guarantee that you'll get the same one again. Instead of hard coding IP addresses client connections, you should use hostnames instead. That way, if you ever need to change the IP, your clients will automatically get the new one (once it propagates through DNS).

Have another answer? Share your knowledge.