Ask A Question


You’re not receiving notifications from this thread.

How can I whitelist an heroku app for external api?

Nathaniel Mak asked in General

I have a situation where I would need a static ip for my app in order to get whitelisted from a third party api, but heroku doesn’t support this. Has anyone got managed to find a fix around this anyway?


I'm not sure about options for Heroku, but when you use a VPS (like DigitalOcean) you get a static IP for your server (as long as you don't destroy the server).

You can also get a Floating IP that allows you to swap out the server behind that IP seamlessly so the IP does not change. That's what I use for my apps that I deploy with


I should probably take a look at hatchbox. It seems that heroku doesn’t support this. Unfortunate since I enjoyed how they had set up the staging and production splits.


While Heroku does not support assigning a static IP address to an app, there are some workarounds you can consider:

Use a third-party add-on: There are some third-party add-ons like Fixie or QuotaGuard that can provide a static IP address for your Heroku app. These add-ons work by routing traffic through their own proxy servers, which have static IP addresses.
Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 73,723+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2023 GoRails, LLC. All rights reserved.