posted 18 years ago
the range is greater than that; a port number is at least a signed 16-bit integer, so they go up to no less than 32767. i could be wrong about that, too - if port numbers turn out to be unsigned (i'm not sure about that detail), then the numbers would go up to 65535 at a minimum.
many modern OS'es, of course, limit the bottom-most 1024 ports such that ordinary users can't open server sockets on them. but this is seldom much of a concern.
[edit: clarification]
[ May 04, 2005: Message edited by: M Beck ]