Wrote Kristian S°˛ensen <ks / cs.auc.dk>, on Tue, Mar 23, 2004 at 05:19:29AM +0900:
> >Why didn't I just try ... socket.addr did the trick :)
> .... it actually didn't do the trick :-/ The socket.addr returns the 
> local address of the ip-address. Do any of you know how to get the 
> remote/connecting ip? (the actual server source is attached - 65 lines)

IPSocket#peeraddr(), perhaps?

See http://www.ruby-doc.org/docs/ProgrammingRuby/

Cheers,
Sam

-- 
Sam Roberts <sroberts / certicom.com>