P
Peter Ashford
Hi,
A question for the list: in a TCP client/server model, the server will
wait accepting new connections on a well known port. New connections
are mapped onto a new port and handled seperately through that.
I was writing a UDP client/server and it occurs to me that I don't know
how to do the same thing. Is it possible? The problem is that my
initial thought was to send the client back the port number of a new
port to connect to which the server could listen to for that client's
connection - but that means the client would have to connect to an
arbitrary UDP port. I would like to have one well known port to connect
to (so machines with firewalls can punch a hole through for that
specific port), but connections to arbitrary ports is not at all
firewall friendly.
What to do? How do games which use UDP in a client/server arangement
solve this problem?
This going to the Java programming NG because that's what I'm coding in,
but I'm not sure that this is especially relevant to the architectural
details.
TIA
Peter.
A question for the list: in a TCP client/server model, the server will
wait accepting new connections on a well known port. New connections
are mapped onto a new port and handled seperately through that.
I was writing a UDP client/server and it occurs to me that I don't know
how to do the same thing. Is it possible? The problem is that my
initial thought was to send the client back the port number of a new
port to connect to which the server could listen to for that client's
connection - but that means the client would have to connect to an
arbitrary UDP port. I would like to have one well known port to connect
to (so machines with firewalls can punch a hole through for that
specific port), but connections to arbitrary ports is not at all
firewall friendly.
What to do? How do games which use UDP in a client/server arangement
solve this problem?
This going to the Java programming NG because that's what I'm coding in,
but I'm not sure that this is especially relevant to the architectural
details.
TIA
Peter.