The simplest solution — the only one I can ever remember:
In Windows Powershell
Say we want to stop a process on port 8080
- Get the process:
netstat -ano | findstr :8080
- 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