title: Get IP of Heroku dynos
body: <p>I have a Heroku app making some API calls to an external service. There are some issues and the service wants to know what IPs are making the calls. </p>
  
  <p>A lot of the basic tools like <code>ifconfig</code>, <code>traceroute</code>, <code>netstat</code>, etc don't exist on the machines. Looks like they are running a very barebones version of Ubuntu 14.04.5.</p>
  
  <p>I was able to use <code>heroku ps:exec -a &lt;myapp&gt;</code> to SSH into my app and use <code>ip addr</code> but there are some problems:</p>
  
  <p>1) It appears that this only allows me to SSH into the web.1 dyno (and I am making my API calls through rest.1, rest.2, etc.)
  2) These calls go through a router on Heroku's side.</p>
  
  <p>How can I get the IPs of all dyno instances and/or the router?</p>