title: Parse X-Forwarded-For to get ip with werkzeug on Heroku
body: <p>Heroku proxies requests from a client to server, so you have to parse the X-Forwarded-For to find the originating IP address.</p>
  
  <p>The general format of the X-Forwarded-For is:</p>
  
  <pre><code>X-Forwarded-For: client1, proxy1, proxy2
  </code></pre>
  
  <p>Using werkzeug on flask, I'm trying to come up with a solution in order to access the originating IP of the client.</p>
  
  <p>Does anyone know a good way to do this?</p>
  
  <p>Thank you!</p>