From: Julien Biard Date: 2009-01-19T23:59:32+09:00 Subject: Re: ip address of client from GServer#serve ------=_Part_8087_5473906.1232377258493 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline thanks, it works. I should have considered the GServer#serve parameter as a socket and not just as an io (cf http://www.ruby-doc.org/core/classes/GServer.html). On Mon, Jan 19, 2009 at 3:43 PM, Brian Candler wrote: > Julien Biard wrote: > > I would like to know if there is a way to take the ip address of client > > from GServer#serve. > > Try this: > > def serve(myClient) > p myClient.peeraddr > end > -- > Posted via http://www.ruby-forum.com/. > > ------=_Part_8087_5473906.1232377258493--