From: Joel VanderWerf Date: 2004-10-24T03:08:27+09:00 Subject: Re: UDP socket receive question Eric Hodel wrote: > On Oct 22, 2004, at 9:34 PM, Joel VanderWerf wrote: > >> Martin Pirker wrote: >> >>> Hello... >>> Copying the minimalistic UDP receive example from the online Pickaxe I >>> require 'socket' >>> port = 12000 >>> server = UDPSocket.open >>> server.bind(nil, port) >> >> ^^^ >> Try a hostname here? You can use the string ''. I guess that >> means any interface. > > > No. nil means bind to all interfaces. See getaddrinfo(3). Ok, but UDPSocket#bind accepts '' as well. It appears (from brief groping in etx/socket/socket.c) that nil and '' are synonyms. So substituting one for the other will not make a difference in the problem the OP was trying to fix.