From: jackster the jackle Date: 2008-02-17T00:10:29+09:00 Subject: Getting IP address using UDP Socket Hi Ruby Forum... I have a simple UDP Socket that I'm opening which listens for Syslog messages on port 514. I am receiving all syslog messages with no problem but I need to log what IP address is sending the messages. I have looked through the UDP Socket documentation but I can't seem to figure out how to call it based on a received message from another host. If anyone can help point me in the right direction, it would be greatly appreciated....thanks. Here is my working code: [code] server = UDPSocket.open server.bind('0.0.0.0', '514') while true do syslog_message = server.recv(400) server.addr puts syslog_message end [/code] jackster -- Posted via http://www.ruby-forum.com/.