From: jackster the jackle Date: 2008-02-17T02:45:29+09:00 Subject: Re: Getting IP address using UDP Socket you...sir, are a great man, sir...... thank you very much for helping me with that..it works perfectly..... Where would I have looked to best be able to figure this out on my own next time? jackster Robert Dober wrote: > On Feb 16, 2008 4:10 PM, jackster the jackle > wrote: >> Here is my working code: >> [code] >> server = UDPSocket.open >> server.bind('0.0.0.0', '514') >> while true do >> > - syslog_message = server.recv(400) > + syslog_message, client_address = server.recvfrom(400) >> server.addr >> puts syslog_message >> end >> [/code] >> >> jackster >> -- >> Posted via http://www.ruby-forum.com/. >> >> > > HTH > Robert > > -- > http://ruby-smalltalk.blogspot.com/ > > --- > Whereof one cannot speak, thereof one must be silent. > Ludwig Wittgenstein -- Posted via http://www.ruby-forum.com/.