Obtaining a pid or process owner from netstat?
glenn at elaw.org
Thu Feb 1 01:12:06 UTC 2007
If 'netstat -anp tcp' shows me an IP address and port with a process
listening on it, can anyone suggest a way to determine either the pid or
the owner of the process that is bound to that address?
In other words:
% netstat -anp tcp | grep LISTEN
tcp4 0 0 188.8.131.52.8091 *.* LISTEN
tcp4 0 0 184.108.40.206.8090 *.* LISTEN
tcp4 0 0 *.8021 *.* LISTEN
tcp4 0 0 *.8080 *.* LISTEN
tcp4 0 0 220.127.116.11.8080 *.* LISTEN
tcp4 0 0 18.104.22.168.13080 *.* LISTEN
I'm interested in what is listening on 22.214.171.124.8080, mainly
because I need something else to listen there. I know it's a Zope
instance, but I can't tell *which* Zope instance (there are many on this
NB: This is on a 4.11-RELEASE-p26 box.
ELAW U.S. Information Technology Manager
Environmental Law Alliance Worldwide
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3271 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070201/c6c60f86/smime.bin
More information about the freebsd-questions