command to inentify the process that is listening in a port.

Bill Moran wmoran at potentialtech.com
Mon Apr 9 15:34:10 UTC 2007


In response to "Siju George" <sgeorge.ml at 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


More information about the freebsd-questions mailing list