I have two Ubuntu 20.04 droplets where I need to make requests that require the requests to come from whitelisted IPs. This is enforced by two separate external APIs (separate domains, companies, etc.), which have whitelisting restrictions. When I run the (Python) apps from my local machine, there’s no issue with passing the whitelist checks, however, the same requests fail from the droplets.
When I run a check with
curl ifconfig.me, the returned IP addresses agree to those in my Digital Ocean dashboard (which are used in the whitelists).
Any possibilities that jump out of why I might be having this issue on the droplets and not on my local machine?
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.
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.
Click below to sign up and get $100 of credit to try our products over 60 days!