[NTLUG:Discuss] Allocating Port addresses.

Steve Baker sjbaker1 at airmail.net
Sun Mar 21 15:18:57 CST 2004


I'm not much of a network expert - but the game I'm writing
right now has to work in a client/server mode.  I have a handy
library that hides most of the nastiness - so I'm not concerned
about that.

One thing I'm puzzled about though.  My TCP and UDP messages
have to be addressed by hostname and port number as you'd expect.

My question is - how the heck do I pick a valid port number?

Clearly I'll want to avoid the ones in /etc/services but beyond
that there seems to be no guidance.

Are there acceptable ranges for games?  Any that I should avoid
because they're likely to be filtered by the intervening network?

---------------------------- Steve Baker -------------------------
HomeEmail: <sjbaker1 at airmail.net>    WorkEmail: <sjbaker at link.com>
HomePage : http://www.sjbaker.org
Projects : http://plib.sf.net    http://tuxaqfh.sf.net
            http://tuxkart.sf.net http://prettypoly.sf.net
-----BEGIN GEEK CODE BLOCK-----
GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M-
V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++
-----END GEEK CODE BLOCK-----



More information about the Discuss mailing list