Question

Fixed IP for outgoing traffic

Some of our clients require us to connect to them from a fixed ip address. We want to deploy a docker image (or possibly if needed a droplet) with a reserved ip. However I noticed the outgoing traffic still originates from the droplet ip. If we need to recreate this droplet, how could we retrain the ip?


Submit an answer
Answer a question...

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.

Bobby Iliev
Site Moderator
Site Moderator badge
June 19, 2022

Hi there,

You can use a ‘Reserved IP address’ for this:

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

Once you’ve added the IP, you can follow the steps here on how to send the outgoing traffic through the new interface rather than the default one:

https://docs.digitalocean.com/products/networking/reserved-ips/how-to/outbound-traffic/

That way, even if you destroy the old Droplet and then create a new one you will be able to keep the reserved IP address.

Hope that this helps!

Best,

Bobby