简体   繁体   中英

what is the IP address of my heroku application

So in my django application, i'm running a task that will request from an api some data in the form of json.

in order for me to get this data, i need to give the IP address of where the requests are going to come from (my heroku app)

how do i get the ip address in which my heroku application will request at

Heroku does not provide a static IP by itself but you can use addons to achieve this goal. This limitation is discussed here - https://devcenter.heroku.com/articles/apex-domains

Generally sites use URL instead of IP address to authenticate requests. You can use zerigo_dns to get an static IP address for your Heroku app.

To my knowledge you can not get an ip for a heroku application. You could create a proxy with a known ip that serves as a middleman for the application. Otherwise you might want to look at whether heroku is still the correct solution for you

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM