On Fri, Dec 03, 1999 at 05:14:59PM +0100, [EMAIL PROTECTED] wrote:
> >Date: Thu, 2 Dec 1999 22:21:07 -0800
> >netstat --inet I get this:
> >tcp        0      0 localhost:8000          localhost:1036
> >so I am wondering, what are ports 1033, 1031, 10xx ? And since it's a

Use netstat -ap to see what process owns that port.

> For me, it is a bit strange "localhost" is on both sides.
> Port numbers: the side, which initiates connection, must
> get free port from some pool, and usually it gets ports
> from 1000 (or 1024?) and the number grows on every connect.

1024. The kernel looks for the first free port based on a hash
function. This may or may not be the next sequential port.

-Steve


-- 
______________________________________________________________________________
Steve Shah ([EMAIL PROTECTED]) | Alteon Web Systems Inc. (Developer/Sysadmin)
    http://www.alteon.com     |   Voice: 408.360.5500  Fax: 408.360.5500
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
             Beating code into submission, one OS at a time...
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to