From: Tanaka Akira Date: 2009-02-08T02:15:32+09:00 Subject: Re: How do I get the destination IP of a received UDP packet? In article , Gavin Yap writes: > I guess this is the only way get my destination address. > I wonder if there's a way to recieve the packet, with layer 3(IP header) > and layer 4(UDP header) info. Your OS may have another (non-portable) way. For example, IP_PKTINFO of GNU/Linux, IP_RECVDSTADDR of 4.4BSD. However they needs recvmsg which is not supported by Ruby, yet. -- Tanaka Akira