Get client's IP address in Sinatra?

Viewed 18221

This is a really simple question, but I cannot find any mention of this, anywhere..

How do I get the client's IP address from in Sinatra?

get '/' do
    "Your IP address is #{....}"
end
2 Answers
Related