Trying to get the IP address in Ruby on Rails

436080 pts.
Tags:
IP address
Networking
Ruby on rails
I'm currently using a Ruby on Rails app and I'm trying to find an easy way to find the hostname / IP address on the box I'm on (since it's a virtual machine). Could someone tell me if there's an easy way to do this in Ruby on Rails?

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: