Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Apr 2007 11:34:08 -0400
From:      Bill Moran <wmoran@potentialtech.com>
To:        "Siju George" <sgeorge.ml@gmail.com>
Cc:        freebsd list <freebsd-questions@freebsd.org>
Subject:   Re: command to inentify the process that is listening in a port.
Message-ID:  <20070409113408.065861a3.wmoran@potentialtech.com>
In-Reply-To: <b713df2c0704090759t1abcc96bld4978bbedec38687@mail.gmail.com>
References:  <b713df2c0704090758h59657b8csc7716d3fe1f91943@mail.gmail.com> <b713df2c0704090759t1abcc96bld4978bbedec38687@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In response to "Siju George" <sgeorge.ml@gmail.com>:
> 
> 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?

sockstat -4

Various magical combinations of switches to netstat will get you there as
well.

-- 
Bill Moran
http://www.potentialtech.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070409113408.065861a3.wmoran>