Retrieving requester IP

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

Thanks,
Jim Englert

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs