How to find which application is using the PORT in Windows ?

Lets see an example to find which application is using the port 5001.

Step 1: Find PID of the process

D:\Lab\CodeForEach>netstat -aon | find ":5001"

TCP     LISTENING     5964
TCP     LISTENING     14516

PID of process using the PORT 5001 is 5964 from above result.

Step 2: Find the application using above PID

D:\Lab\CodeForEach>tasklist | find "5964"

iperf.exe     5964     Console      1     3,532 K



Application : iperf.exe

PID : 5964



Submit a Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>