NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
How to find which process is listeing on a given port?
Paul Goyette writes:
> I vaguely recall that there was a way to figure this out, but I can't
> for the life of me remember!
>
> I've got a _lot_ of traffic hitting my system on UDP 51413, and a
> netstat shows that the machine is listening on this port for both UDP
> and TCP. netstat -A gives me the pcb address for the active sessions
> (but, apparently, not for the listener), but I can't remember how to
> figure out which process has that pcb/file open.
>
>
How about:
fstat | grep <port-number>
Hth
Ib-Michael
--
Email: i.m.martinsen(at)gmail.com
Running NetBSD/i386 v5.1
The ASCII Ribbon Campaign
() No HTML/RTF in email
/\ No Word docs in email
Respect for open standards
Home |
Main Index |
Thread Index |
Old Index