Re: Who owns my unknown ports?

From: Ian Northeast (ian_at_house-from-hell.demon.co.uk)
Date: 12/06/03


Date: Fri, 05 Dec 2003 23:50:54 +0000

Rohan Beckles wrote:
> Hello --
>
> I recently ran nmap against my system, and I've discovered a couple of ports
> of unknown origin. Is there a program that can tell me which processes own
> which TCP and UDP ports?

lsof -i :<port number>

In the unlikely event of your Linux system's not containing lsof,
ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/.

Regards, Ian