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.

Join the discussion
Create an account Log in

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

Join 78,890+ 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.

    © 2023 GoRails, LLC. All rights reserved.