Getting IP address through Ruby On Rails

Hi,
Can Anyone tell me how to get the IP address of the system through
rails
application?
The system’s IP on which the application running

Thanks,

On 2 Dec 2008, at 13:55, hema gonaboina wrote:

Hi,
Can Anyone tell me how to get the IP address of the system
through rails application?
The system’s IP on which the application running

Well request.host tells you the host (which isn’t quite the same
thing). Obviously you can grep the output of ifconfig -a but that
might not be entirely helpful (eg on the servers that we rung that
would return several ip addresses).

Fred

Thank You Fred it worked …

On Dec 2, 7:18 pm, Frederick C. [email protected]

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