Pages

Thursday, April 7, 2011

How to know which application is using desired port in windows

Just go to command prompt and type

netstat -o -n -a | findstr 0.0:80

output is like

TCP    0.0.0.0:80    0.0.0.0:0    LISTENING     1656

The number at the end (1656, in this case) is a process ID.

Open Task Manager and click View -> Select Columns. Check the box next to PID (Process Identifier). You can then find the process ID returned by netstat and determine which process is using the port.

1 comment: