Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Nov 2007 14:23:35 -0500
From:      "Brian A Seklecki (Mobile)" <bseklecki@collaborativefusion.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:  <1195154615.4042.121.camel@new-host>
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

On Thu, 2007-11-15 at 11:20 -0800, Yuri wrote:
> 'netstat -a' gives me the listing of network connection/listening records.
> But there's no link to the process id that opened it.

Install ports/sysutils/lsof/

Each socket is a file descriptor.

~BAS

> With lots of processes this can be a significant problem to figure out who
> opened which connection.
> 
> Yuri
> _______________________________________________
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
> 
> 
> 
> 
> 
> 




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