From: Gavin Yap Date: 2009-02-07T23:10:16+09:00 Subject: How do I get the destination IP of a received UDP packet? Hi There, I need to write a server which is able to identify client by destinations. My machine is listening to "0.0.0.0", any IP addrs configured to it. Take for instance, the machine is configured with "192.168.1.10, 172.16.0.10", also listening to "0.0.0.0", allow listening to Broadcast queries, which is also important to my application Hence, if one of the clients send a UDP packet to it, the server program would check the destination address of the client request and reply the client with different "answers". I've not been lucky enough to google how to get the destination address of a incoming packet. Hope someone here could shed some light. Thanks :) -- Posted via http://www.ruby-forum.com/.