From: Martin Pirker Date: 2004-10-23T08:59:13+09:00 Subject: UDP socket receive question Hello... Copying the minimalistic UDP receive example from the online Pickaxe I require 'socket' port = 12000 server = UDPSocket.open server.bind(nil, port) loop do text,sender = server.recvfrom(1024) puts text end localhost --> localhost UDP connections work fine so I tried connecting 2 different boxes check network connection by netcat: sender: echo "whatever" |netcat -u 192.168.x.y 12000 receiver: netcat -u -l -p 12000 connection is ok receiver netcat and sender Ruby script work ok, too but, with receiver Ruby (like above) neither sender netcat nor Ruby script are able to make a transfer -> Ruby receiver drops pakets?!? lsof shows a "UDP localhost:12000" binding, so everything should be ok on the receiving side Question: I simply want a Ruby script collecting all UDP pakets arriving at a specific port, above script only works for me localhost-->localhost why? ruby 1.8.2 (2004-07-16) [i686-linux] (aka pre1) thanks for any hint, I'm out of ideas Martin