Force changing the ip of the Heroku dyno
Asked Answered
D

1

8

I am wondering if there is a way to reset the dyno IP on Heroku when I want.

I noticed sometimes it changes when the application is restarted. However, not always.

How can we reset the dyno IP address on restart every time?


I already saw these questions:

Degenerate answered 19/2, 2019 at 13:58 Comment(0)
P
8

It turns out by restarting the app (deleting the dynos), the IP is changed, by default.

You can do this by using the Heroku API.

Ploughshare answered 11/3, 2019 at 8:51 Comment(1)
This does indeed appear to work. For some reason Mailchimp blacklisted one of the IP's used by Heroku, but restarting our app must have given us a different IP for now it's no longer blocked.Applegate

© 2022 - 2024 — McMap. All rights reserved.