Subject: Re: command to inentify the process that is listening in a port.
To: None <netbsd-users@netbsd.org>
From: Geert Hendrickx <ghen@telenet.be>
List: netbsd-users
Date: 04/09/2007 23:23:01
On Mon, Apr 09, 2007 at 03:20:09PM +0000, Christos Zoulas wrote:
> In article <b713df2c0704090759y2be86e5cua968abe0b86a7598@mail.gmail.com>,
> Siju George <sgeorge.ml@gmail.com> wrote:
> >Hi,
> >
> >How Do you actually Identify what process is listening on a TCP/IP port?
> >"nmap" does not usually give the right answer.
> >There should be some command that can be run on the local host for
> >identification right?
> 
> fstat [base], lsof [pkgsrc].

sockstat -4l or sockstat -6l [base].

	Geert