Subject: Re: IPport-PID tool
To: None <>
From: Andrew Brown <>
List: tech-net
Date: 04/24/2002 13:51:00
On Wed, Apr 24, 2002 at 06:45:58PM +0100, wrote:
>on Wed, Apr 24, 2002 at 07:21:57PM +0200, Pierre Bourgin wrote:
>> the command 'netstat -a -f inet' shows me all IP ports used on a machine
>> (server & clients connections), but I don't know which process (or PID) is
>> "using" a certain IP port (like port 32xxx is used by PID 1234, which is
>> the netscape program of user foo said 'ps' output).
>> Is there a command or an option of netstat in order to get that information
>> ? I went into man pages for a while but nothing lighted me :(
>Try using fstat(1).

or lsof from pkgsrc.

|-----< "CODE WARRIOR" >-----|             * "ah!  i see you have the internet (Andrew Brown)                that goes *ping*!"       * "information is power -- share the wealth."