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

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     0.0.0.0:5001          0.0.0.0:0     LISTENING     5964 TCP     127.0.0.1:50014     0.0.0.0:0     LISTENING ...
www.000webhost.com