NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: How to find which process is listeing on a given port?
Never mind - figured it out
sockstat(1) shows that this traffic is from my bittorrent server.
On Fri, 20 Jul 2012, Paul Goyette wrote:
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.
-------------------------------------------------------------------------
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer | | pgoyette at netbsd.org |
-------------------------------------------------------------------------
-------------------------------------------------------------------------
| Paul Goyette | PGP Key fingerprint: | E-mail addresses: |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer | | pgoyette at netbsd.org |
-------------------------------------------------------------------------
Home |
Main Index |
Thread Index |
Old Index