My websocket server runs this way:
ws_hdl = WebSocketHandler.new do |ws|
# here we should determine somehow the IP address of an incoming connection
end
srv = Server.new ws_hdl
srv.listen("0.0.0.0", 8080)
Is it possible to obtain an IP address of the remote host?
It is required for logging and for security reasons as well.
Thanks in advance for any good advice!