Which task is using which port in Windows.
netstat -aon | findstr <port number>
Example;
c:\netstat -aon | findstr 8080
Output like this;
C:\>netstat -aon | findstr 8080
TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 8424
TCP 127.0.0.1:8080 127.0.0.1:58664 FIN_WAIT_2 8424
TCP 127.0.0.1:8080 127.0.0.1:58665 FIN_WAIT_2 8424
TCP 127.0.0.1:8080 127.0.0.1:58667 FIN_WAIT_2 8424
We can find the application by PID;
c:\tasklist | findstr 8424
https://dzone.com/articles/how-to-check-which-process-is-using-port-8080-or-a