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:

Ionică Bizău
  • 109,027
  • 88
  • 289
  • 474

1 Answers1

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.

GhitaB
  • 3,275
  • 3
  • 33
  • 62
  • 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. – Adam Reis Nov 19 '19 at 23:40