How do I get different ip address for each droplet?

Posted February 4, 2017 3.3k views

I have a script that converts the droplet to act as a proxy in order for me to access a website blocked, when I deploy multiple servers with the same script expecting different ip address, I receive the same ip address for each droplet.

How do I correct this?


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.

Submit an Answer
3 answers

You’re making a wrong assumption, every droplet always has a different and unique IP address.


When it comes to deployment, each Droplet that you deploy will be provided with a unique IP. While they may be from the same or a very similar block, they will be unique as it’s not possible for two or more Droplets to share the same IP.

So, for example, if you deploy three Droplets to NYC3, all three will have unique IP addresses.

That being said, there are instances where you’ll deploy a new Droplet, destroy it, deploy another and the newest Droplet will have the same IP as the previous. This isn’t something you can change though as, in most cases, IP’s are provided at random – in others, you may receive an IP that was previously assigned but not currently in use.

Hello, there

Each droplet will have a unique IP address after deployment, however if you’re interested in failover and high availability you can use floating IPs.

DigitalOcean floating IPs are publicly-accessible static IP addresses that you can assign to Droplets and instantly remap between other Droplets in the same datacenter. Implement a failover mechanism with floating IPs to build a high availability infrastructure.