Report this

What is the reason for this report?

How do I get different ip address for each droplet?

Posted on February 4, 2017

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?

Thanks



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!

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.

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

@TheNextLBJ623

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.

https://docs.digitalocean.com/products/networking/floating-ips/

Regards, Alex

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.