Is there a way to determine what program is listening to some port, TCP or UDP, in Linux?
4 Answers
netstat -lp
is the command you want, but you need to be root to see all the data.
ss -tlp
Quicker than netstat.
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.
-
I know about nmap... anyway, I didn't wrote it in question, so +1. Jan 24, 2010 at 17:33