From: Francis Cianfrocca Date: 2006-06-20T10:06:47+09:00 Subject: Re: How to get the response from a UDP socket. ------=_Part_5430_533488.1150765604049 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hamid Rasoulian wrote: > sock.bind($IP1 , $port1) ... > server.bind(nil, $port1) >>>Two sockets can't bind to the same port. This raises the error:<<< They're on two different machines, note the two different IP addresses. (Unless he's multihomed.). There are other problems with this code anyway. He doesn't show the line that sends the data from the client to the server, and he also doesn't show the client code that receives the reply. As far as I can tell, he's trying to send data from the client to a server port which is different from the one the server is listening on. And yet, he says the server receives the request. So something is missing in the code sample. ------=_Part_5430_533488.1150765604049--