Getting the local IP

Hi,

In the request object you can get the local domain name using a method
similar to this:
domain_name = @request.domain

I looked high and low and can’t seem to find a way to get the the actual
ip number of that domain.

Does any one have any ideas?

Joe

Joe C. wrote:

Hi,

In the request object you can get the local domain name using a method
similar to this:
domain_name = @request.domain

I looked high and low and can’t seem to find a way to get the the actual
ip number of that domain.

Does any one have any ideas?

Joe

@request.remote_ip ???

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