<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3157" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=906284215-28092007><FONT face=Arial
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=906284215-28092007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=906284215-28092007><FONT face=Arial size=2>I'm new here, just
starting implementing ENet as middleware. Halfway I'm wandering how ENet
goes along with routers & NAT tables.</FONT></SPAN></DIV>
<DIV><SPAN class=906284215-28092007><FONT face=Arial size=2>My old
implementation:</FONT></SPAN></DIV>
<DIV><SPAN class=906284215-28092007><FONT face=Arial size=2>- client/server
model</FONT></SPAN></DIV>
<DIV><SPAN class=906284215-28092007><FONT face=Arial size=2>- open a UDP
connection at port 25000</FONT></SPAN></DIV>
<DIV><SPAN class=906284215-28092007><FONT face=Arial size=2>- write &
receive over this port</FONT></SPAN></DIV>
<DIV><SPAN class=906284215-28092007><FONT face=Arial size=2>- distinguish
between different clients by looking at the sending IP
address</FONT></SPAN></DIV>
<DIV><SPAN class=906284215-28092007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=906284215-28092007><FONT face=Arial size=2>In ENet I see it
works more like tcp:</FONT></SPAN></DIV>
<DIV><SPAN class=906284215-28092007><FONT face=Arial size=2>- open a UDP server
at port 25000</FONT></SPAN></DIV>
<DIV><SPAN class=906284215-28092007><FONT face=Arial size=2>- client connects
and gets another UDP port to communicate with</FONT></SPAN></DIV>
<DIV><SPAN class=906284215-28092007><FONT face=Arial size=2>- each client seems
to write over its own UDP connection with its own port</FONT></SPAN></DIV>
<DIV><SPAN class=906284215-28092007><FONT face=Arial size=2>- distinguish
clients by which socket the message came in through</FONT></SPAN></DIV>
<DIV><SPAN class=906284215-28092007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=906284215-28092007><FONT face=Arial size=2>If indeed the
client, after the initial connection phase, starts communicating over another
port, doesn't this mean trouble with firewalls/NATs? It seems the port is
dynamically chosen.</FONT></SPAN></DIV>
<DIV><SPAN class=906284215-28092007><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=906284215-28092007><FONT face=Arial size=2>Thanks for any
insights,</FONT></SPAN></DIV>
<DIV><SPAN class=906284215-28092007><FONT face=Arial
size=2>Ruud</FONT></SPAN></DIV>
<DIV><SPAN class=906284215-28092007></SPAN> </DIV></BODY></HTML>