Relaying trustin's answer from FreeNode: session.getRemoteAddress(), since
session is actually different for each unique source socket.


yangzhang wrote:
> 
> How do I get the source IP address and UDP port of a UDP packet received
> in this fashion?
> 
>     public final class Receiver extends IoHandlerAdapter {
>         @Override
>         public void messageReceived(IoSession session, Object obj)
>                 throws Exception {
> ...
> 
> Thanks in advance!
> 

-- 
View this message in context: 
http://www.nabble.com/Getting-UDP-packet-source-tp15148498s16868p15155573.html
Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.

Reply via email to