home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / protocol / tcpip / 5616 < prev    next >
Encoding:
Internet Message Format  |  1992-12-15  |  1.1 KB

  1. Path: sparky!uunet!munnari.oz.au!manuel.anu.edu.au!coombs!avalon
  2. From: avalon@coombs.anu.edu.au (Darren Reed)
  3. Newsgroups: comp.protocols.tcp-ip
  4. Subject: Port Allocation.
  5. Date: 15 Dec 92 14:59:15 GMT
  6. Organization: Australian National University
  7. Lines: 23
  8. Message-ID: <avalon.724431555@coombs>
  9. NNTP-Posting-Host: 150.203.76.2
  10.  
  11. When allocating ports for program use, it is commonly recognized that
  12. under 1024 is priveledged as per the latest numbers RFC.  A small space
  13. of this (usu between 1000 and 1024) is used by the "r" commands.
  14.  
  15. Then what ?  From /usr/include/netinet/in.h:
  16.  
  17. /*
  18.  * Ports < IPPORT_RESERVED are reserved for
  19.  * privileged processes (e.g. root).
  20.  * Ports > IPPORT_USERRESERVED are reserved
  21.  * for servers, not necessarily privileged.
  22.  */
  23. #define IPPORT_RESERVED         1024
  24. #define IPPORT_USERRESERVED     5000
  25.  
  26. Does this imply that nfs should be on a port > 5000 or that OpenWindows/
  27. Openlook shouldn't be at 2000 and that most rpc services are definately
  28. in the wrong place ?
  29.  
  30. What about NCSA telnet which *always* has a local port >16384 for any
  31. connection, be it telnet or ftp ?
  32.  
  33. darren
  34.