Security Basics mailing list archives

RE: how to find a port that some programs are using?


From: Tiago Filipe Dias <tdias () trusted pt>
Date: Mon, 21 Feb 2005 17:32:26 +0000

Duardo,

In linux you can launch the command netstat -anp | grep -i `string` and
you'll get the process name which binded to that specific port. 

You can also use a tool called lsof with flag -i

Investigate a little. 

Hope this was helful.

Kind regards,

Tiago Dias 

-----Original Message-----
From: Duardo [mailto:eduardo () minicom com br] 
Sent: sexta-feira, 18 de Fevereiro de 2005 14:02
To: security-basics () securityfocus com
Subject: how to find a port that some programs are using?

Hi, I'm really sorry about the newbie question, but there it goes:

I have some programs that makes a conection on it server, and I must know
which port these programs are using.

I'm under linux, if anyone knows some tool or something like this I'd be
grateful.

Thanks


Current thread: