How do I find out which process is listening on a TCP or UDP port on Windows?
We can do this using netstat
:
netstat -abno
-a
shows all connections and listening ports.-b
shows the executable responsible for each connection or listening port.-n
shows the IP address and port numbers numerically.-o
shows the process ID for each connection or listening port.Alternatively, you can view details about listening ports with the Resource Monitor GUI. This GUI is accessible from the performance tab of Task Manager, or through running resmon.exe
.