How can I obtain the ip address of the originating (client) socket ,
in a server/client socket ruby program?
What ruby library is fitted with a class/ method to do this?
How can it be done using ruby?
I would appreciate some sample code.
How can I obtain the ip address of the originating (client) socket ,
in a server/client socket ruby program?
What ruby library is fitted with a class/ method to do this?
How can it be done using ruby?
I would appreciate some sample code.
2007/11/24, Victor R. [email protected]:
How can I obtain the ip address of the originating (client) socket ,
in a server/client socket ruby program?What ruby library is fitted with a class/ method to do this?
How can it be done using ruby?I would appreciate some sample code.
http://www.ruby-doc.org/docs/ProgrammingRuby/html/lib_network.html
robert
From: “Robert K.” [email protected]
2007/11/24, Victor R. [email protected]:
How can I obtain the ip address of the originating (client) socket ,
in a server/client socket ruby program?What ruby library is fitted with a class/ method to do this?
How can it be done using ruby?I would appreciate some sample code.
sock_domain, remote_port, remote_hostname, remote_ip = socket.peeraddr
Regards,
Bill
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs