7b71a76b   
   From: barmar@alum.mit.edu   
      
   In article   
   <0f8f9898-53f0-42a0-b91f-d62babfd50e1@v30g2000yqm.googlegroups.com>,   
    Mister B wrote:   
      
   > I have inherited some software that uses an IP port number 50083 that   
   > has been added to /etc/services (it's to start an xterm and get   
   > another process to send the data), but I'm finding some other process   
   > (not in my control - it's an Ingres process iigcc) is already using   
   > the port.   
   >   
   > 1) I'm presuming the Ingres process has used INADDR_ANY - what range   
   > does this select from?   
      
   I assume you mean IPPORT_ANY, i.e. it uses 0 and lets the OS select a   
   port.   
      
   It's implementation-dependent. On your system, it looks like it uses   
   the same range as for outgoing ephemeral ports, 32K-64K.   
      
   > 2) In which range should I select my port. Process is not running as   
   > root, so presumably should be > 1024. From googling, I've seen   
   > suggestions up to 5000, 49152, 50000, 32767?   
      
   Well-known ports should generally be below 32K.   
      
   Also, if you start your server before other applications, it will win   
   the race for the port.   
      
   --   
   Barry Margolin, barmar@alum.mit.edu   
   Arlington, MA   
   *** PLEASE don't copy me on replies, I'll read them in the group ***   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|