How to know PID responsible for network connection/listen?

Brian A Seklecki (Mobile) bseklecki at collaborativefusion.com
Thu Nov 15 11:23:40 PST 2007


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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
> 
> 
> 
> 
> 
> 



More information about the freebsd-questions mailing list