Question

How do I get different ip address for each droplet?

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


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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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

@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.

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