views:

4179

answers:

5

How can you find out which process is listening on a port on Windows?

+15  A: 
C:\> netstat -a -b

(add -n to stop it trying to resolve hostnames, which will make it a lot faster)

Edit: +1 for Dane's recommendation for TCPView. Looks very useful!

Brad Wilson
+3  A: 
netstat -aon | find /i "listening"
aku
I just tried this and it doesn't show any process info.
J c
"doesn't show any process info" huh? it shows process ids of all listening processes. If you need *name* of process, use Brad's solution
aku
My bad, didn't see the PID as I was looking for the process name.
J c
+13  A: 

Use TCPView if you want a GUI for this. It's the old Sysinternals app that Microsoft bought out.

Dane
+4  A: 

If you'd like to use a GUI tool to do this there's SysInternals TCPView.

Dave Webb
+1  A: 

I agree with Dave Webb - SysInternals tools for sure.

MotoWilliams