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

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

In response to "Siju George" < at>:
> 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

Bill Moran

More information about the freebsd-questions mailing list