I had a similar problem with a Sinatra app on Rack. Rack's request.ip was returning Amazon LB IPs. I ended up grabbing the client IP from the env environment variables..
ip = env[‘HTTP_X_REAL_IP’] ||= env[‘REMOTE_ADDR’] Hope that helps. ( http://developerhemal.tumblr.com/post/3958107290/client-ip-addresses-on-heroku ) On 31 March 2011 16:58, Brad Gyger <[email protected]> wrote: > Looking into this now. I'll follow up with an email as well. > > On Mar 30, 11:23 am, kowsik <[email protected]> wrote: > > This is a bummer. We are about to switch to hostname-based SSL > onhttp://blitz.ioand it's important that we see the original IP. Can > > someone from Heroku confirm/deny this and/or suggest a work around? We > > are using sinatra and so far (without the SSL add-on) we can see the > > request.ip. > > > > Thanks, > > > > K. > > ---http://blitz.iohttp://twitter.com/pcapr > > > > > > > > > > > > > > > > On Wed, Mar 30, 2011 at 7:39 AM, chris <[email protected]> wrote: > > > Again, if you're using Hostname Based SSL, even on non-https requests, > you > > > will not get the users IP, no matter which headers you try. So, yeah, > you'll > > > have go to through a 3rd party, or try not to care about the IPs at > all! > > > > > -- > > > 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. > > -- 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.
