Retrieving requester IP


#1

Hey All,
How can you access the requesting computer’s IP address?

Thanks,
Jim Englert


#2

On Nov 29, 2008, at 9:28 AM, James E. wrote:

How can you access the requesting computer’s IP address?

In a controller you can use request.remote_ip. So…

@visitor_ip = request.remote_ip

– gw