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 cl
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!
--