I haven't tried this with Heroku, but with another app I had hosted on EC2 I was able to use request.env['HTTP_X_FORWARDED_FOR'] to get this.
On Sep 28, 2010, at 2:45 AM, Josh K wrote: > Hi Guys, > > We have a web app deployed on Heroku which requires ip address logging > of each request, but we noticed that the ip address is always a > 10.*.*.* address (local) instead of a valid address from the > interwebs. After reading a little into this I found out that this may > be due Amazon LBS and there may be a box config work around available, > although I am not 100% sure on this. > > Can anyone at Heroku tell me if there is any way to get a requests ip > address, and if not currently, if there are plans to enable this > functionality? > > Many Thanks, > > Josh > > -- > You received this message because you are subscribed to the Google Groups > "Heroku" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/heroku?hl=en. > -- You received this message because you are subscribed to the Google Groups "Heroku" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/heroku?hl=en.
