[ENet-discuss] Optimizing ENet Protocol ?

Len Holgate len.holgate at jetbyte.com
Thu May 24 03:32:26 PDT 2012

> peerID should be deducted from packet's sender IP & Port which are in
> ENetHost::receivedAddress .

Bear in mind that a senders port can change if they're behind a NAT. Some
NATs will move the port that they're using for your UDP datagrams around,
they know nothing of the 'connection' that you have between two peers and so
it's quite valid for them to send every single datagram out on a different
port if they wanted to - they don't, but I've certainly seen peers move from
one port to another mid connection. Without a peer ID there's no way for you
to keep the connection open if this happens.


More information about the ENet-discuss mailing list