Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Nov 2007 13:22:34 -0600
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Yuri <yuri@rawbw.com>
Cc:        yuri@tsoft.com, freebsd-questions@freebsd.org
Subject:   Re: How to know PID responsible for network connection/listen?
Message-ID:  <20071115192234.GF33712@dan.emsphone.com>
In-Reply-To: <1195154430.473c9bfef18f0@webmail.rawbw.com>
References:  <1195154430.473c9bfef18f0@webmail.rawbw.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (Nov 15), Yuri said:
> 'netstat -a' gives me the listing of network connection/listening
> records. But there's no link to the process id that opened it. With
> lots of processes this can be a significant problem to figure out who
> opened which connection.

Try /usr/bin/sockstat or the sysutils/lsof port.

-- 
	Dan Nelson
	dnelson@allantgroup.com



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