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 \'/\'
Sinatra provides a request object, which is the interface to the client request data that you should be using.
Using request.ip is the preferred method to find the client's IP address:
request.ip
get '/' do "Your IP address is #{request.ip}" end