UDPSocket problems with MacOsX

hello,
i´ve got a problem with UDPSocket under MacOsX 10.2
the following code is not working:

server = UDPSocket.open()
server.bind(nil, $portUDP)

$portUDP is f.e. 12345.
it not even gives me an ErrorMessage.
the “client” code:
sock = UDPSocket.open(Socket::AF_INET)
sock.connect($hostname, $portUDP)
sock.send(“connection-based”, 0)
is working fine, when starting the “server”-code on a linux machine.

any Ideas or known problems?
cheers,
sebastian

i´ve got a problem with UDPSocket under MacOsX 10.2
the following code is not working:

server = UDPSocket.open()
server.bind(nil, $portUDP)

$portUDP is f.e. 12345.
it not even gives me an ErrorMessage.
the “client” code:
sock = UDPSocket.open(Socket::AF_INET)
sock.connect($hostname, $portUDP)
sock.send(“connection-based”, 0)
is working fine, when starting the “server”-code on a linux machine.

Does it work better if you use the empty string instead of nil in the
call to bind? I.e.:

server.bind(“”, $portUDP)

What are you doing after the bind to send UDP information?

Scott