< BACK TO BLOG

kill process by port number

Published Wed Apr 12 2023



The simplest solution — the only one I can ever remember:


In Windows Powershell

Say we want to stop a process on port 8080

  1. Get the process:
netstat -ano | findstr :8080
  1. Stop the process
stop-process 82932



https://stackoverflow.com/questions/39632667/how-do-i-kill-the-process-currently-using-a-port-on-localhost-in-windows




Subscribe to my Newsletter

Get the latest posts delivered right to your inbox