This project is archived and is in readonly mode.

#2830 ✓hold
Robin Wunderlin

request.remote_ip return same ip for all clients

Reported by Robin Wunderlin | June 24th, 2009 @ 12:49 PM | in 2.x

I have a ip-protected area in my application.
I test if the request.remote_ip is equivalent to my fix ip.

But since the new rails update I receive for all clients the same ip.
It worked well before I made the rails update to 2.3.2 .

previous rails = 2.0.2
rails = 2.3.2
mongrel = 1.1.5
Apache = 2.2.3

Comments and changes to this ticket

  • Francesc Esplugas

    Francesc Esplugas June 29th, 2009 @ 03:03 PM

    I use request.env['REMOTE_ADDR'] to achieve this. Hope that helps.

  • Carl Lerche

    Carl Lerche July 2nd, 2009 @ 07:07 PM

    • State changed from “new” to “hold”

    I'm sorry, but there isn't enough information for us to figure out what is going on.

    Could you provide in detail everything that changed between when everything worked and everything did not work. Could you also provide a failing test against 2-3-stable that illustrates the bug. This would allow us to perform a bisect and understand the problem better.

  • Robin Wunderlin

    Robin Wunderlin July 24th, 2009 @ 10:17 AM

    I can provied you with the environment varaibles of my rails application:



    request.remote_ip return 217.150.XXX.XXX.

    But the address i want HTTP_X_FORWARDED_FOR

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>