8

Is there a way to determine what program is listening to some port, TCP or UDP, in Linux?

4 Answers 4

5
netstat -lp

is the command you want, but you need to be root to see all the data.

1
  • Thanks. Didn't thought about reading netstat docs...
    – Catherine
    Jan 21, 2010 at 15:46
2

ss -tlp

Quicker than netstat.

1
  • nice.. i didnt know about this command.. Jan 22, 2010 at 13:12
1

Take a look at this and this page.

0
1

Already answered, but if it's on a system you don't have a shell on, running nmap -sV -p <port number> <target> will often give you the answer. Add -sU if scanning a UDP port.

1
  • I know about nmap... anyway, I didn't wrote it in question, so +1.
    – Catherine
    Jan 24, 2010 at 17:33

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .