kill process running on port using CLI:

0
691

There are many times when we are in the middle of our routine development activities and we get irritated seeing that port 8080 address bind error. You can get rid of the process running on default port in this case 8080, by executing the below command:-

C:\Windows\system32>netstat -o -n -a | findstr 8080  //Process running in port 8080 C:\Windows\system32> netstat -o -n -a | findstr 8080 TCP 0.0.0.0:8080 0.0.0.0:0 LISTENING 2500 TCP 10.240.216.50:60767 153.112.103.6:8080 ESTABLISHED 6660 TCP 10.240.216.50:61365 153.112.103.6:8080 ESTABLISHED 6660 TCP 10.240.216.50:61368 153.112.103.6:8080 ESTABLISHED 6660 TCP 10.240.216.50:61378 153.112.103.6:8080 ESTABLISHED 6660 TCP 10.240.216.50:61388 153.112.103.6:8080 ESTABLISHED 6660 TCP 10.240.216.50:61389 153.112.103.6:8080 ESTABLISHED 6660 TCP 10.240.216.50:61396 153.112.103.6:8080 ESTABLISHED 6660 TCP 10.240.216.50:61397 153.112.103.6:8080 ESTABLISHED 6660 TCP 10.240.216.50:61398 153.112.103.6:8080 ESTABLISHED 6660 TCP 10.240.216.50:61400 153.112.103.6:8080 ESTABLISHED 6660 TCP 10.240.216.50:61401 153.112.103.6:8080 ESTABLISHED 6660 TCP 10.240.216.50:61403 153.112.103.6:8080 ESTABLISHED 6660 TCP [::]:8080 [::]:0 LISTENING 2500
  

The below command is to kill the process listening to port 8080 i.e 2500 –

C:\Windows\system32>taskkill /F /PID 2500
SUCCESS: The process with PID 2500 has been terminated.</pre>
 

This successfully kills the process running on port 8080. This article you learned how to kill process using command-line. I hope it helps!