From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,b7c0a9ba3e854297 X-Google-Attributes: gid1164f8,public From: Timothy Lee Couger Subject: Re: DEC Unix Ephemeral Ports Date: 1997/08/04 Message-ID: <33E5F829.3DE8F935@mci.com>#1/1 X-Deja-AN: 262283106 References: <33E224D1.752F51D5@mci.com> X-Priority: 3 (Normal) Organization: Internet MCI Newsgroups: comp.sys.dec Timothy Lee Couger wrote: > > I'm trying to figure out what the ephemeral port range is for DEC Unix. > On HPUX (and BSD?) it is 1025-5000. On Solaris, I believe it is > everything above 32768. > > Thanks for any info provided ... > Found my answer ... This information is defined in the header file. In this file you will find the following comment: /* * Local port number conventions: * Ports < IPPORT_RESERVED are reserved for * privileged processes (e.g. root). * Ports > IPPORT_USERRESERVED are reserved * for servers, not necessarily privileged. */ #define IPPORT_RESERVED 1024 #define IPPORT_USERRESERVED 5000 I interprete this as saying that ports 1-1023 are the well known ports, ports 1024-5000 are the ephermal ports, and port 5001 through 65535 are for the non-priveledge server (user defined) ports. +--------------------------------------+---------------------------+ | | __ | | Timothy Lee Couger | / /\ __ | | MCI Telecommunications Corporation | / / / __ / /\ | | 2424 Garden of the Gods Road | / / / /_/\ / / / | | Colorado Springs, CO 80919 | / / \ \ \ \ /_/ / __ | | | /_/ /\ \ \ \ \/\ \ \/ /\ | | Internet: Tim.Couger@MCI.com | \_\/\ \ \ \ \ \/\ \ \/ / | | Voice: 719-535-4849 | \ \ \ \ \ /\ \ / | | VNet: 622-4849 | \_\/ \_\/ \_\/ | +--------------------------------------+---------------------------+