How can I get the client IP Address from inside a Ruby script that is launched by xinetd through a stream socket?
In PHP I would just use stream_socket_get_name(STDIN, true);
Thanks in advance!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
After searching a lot for the solution, and even trying to ask on the #ruby channel on Freenode and being completely ignored, I’ve finally found the solution:
Hope this helps someone!