I've seen recommendations to check request.env.http_client_ip, 
request.env.http_x_forwarded_for, and request.env.remote_addr, in that 
order (remote_addr should always be there, but you want one of the other 
two if available because the client may be behind a proxy).

Anthony

On Tuesday, February 28, 2012 10:33:32 PM UTC-5, Sanjeet Kumar wrote:
>
> I want to insert the client system IP address in my database through the 
> controller can you explain how i get the client IP address of the system 
> when they login.
>
> On Tue, Feb 28, 2012 at 7:29 PM, Phyo Arkar <[email protected]>wrote:
>
>> Which system?
>>
>> On 2/28/12, Sanjeet Kumar <[email protected]> wrote:
>> > How we can get the IP address of the system
>> >
>>
>
>

Reply via email to