Answered by : milan-thummar
netstat -ano | findstr "PORT_NUMBER"
taskkill /PID PORT_NUMBER /f
Source : | Last Update : Tue, 16 Jun 20
Answered by : snippets
npx kill-port 8080
Source : | Last Update : Fri, 05 Mar 21
Answered by : eager-eland-4nfdja26xl8y
netstat -ano | findstr :8080
taskkill /PID <yourid> /F
Source : | Last Update : Fri, 19 Jun 20
Answered by : ill-ibis-3v50vx6suo7h
netstat -ano | findstr : <port>
taskkill /PID <PID> /F
Source : https://stackoverflow.com/questions/39632667/how-do-i-kill-the-process-currently-using-a-port-on-localhost-in-windows | Last Update : Thu, 09 Sep 21
Answered by : gorgeous-gorilla-jlexcqdr39a6
netstat -ano | findstr :<PORT>
(Replace <PORT> with the port number you want, but keep the colon)
Step 2:
Next, run the following command:
taskkill /PID <PID> /F
Source : https://stackoverflow.com/questions/39632667/how-do-i-kill-the-process-currently-using-a-port-on-localhost-in-windows/39633428 | Last Update : Mon, 04 Oct 21
Answered by : gifted-grasshopper-73frxhgobmff
netstat -ano | findstr :<PORT>
taskkill /PID <PID> /F
Source : https://stackoverflow.com/a/39633428/700183 | Last Update : Thu, 21 Jan 21
Answered by : cherry-berry
netstat -ano | findstr :<PORT>
taskkill //PID <PID> //F
OR
taskkill /PID <PID> /F
Source : | Last Update : Mon, 06 Sep 21
Answered by : shikhor-kumer-roy
netstat -ano | findstr :<yourPortNumber>
taskkill /PID <typeyourPIDhere> /F
Source : https://stackoverflow.com/questions/55311842/windows-kill-process-by-port-number | Last Update : Tue, 17 May 22
Answered by : thankful-turkey-sm2803o1z6ab
// Open cmd with admintrastor and only use one command
for /f "tokens=5" %a in ('netstat -aon ^| findstr 3000') do taskkill /PID %a /F & exit
for /f "tokens=5" %a in ('netstat -aon ^| findstr 3306') do taskkill /PID %a /F & exit
Source : | Last Update : Mon, 17 Oct 22
Answered by : testy-turkey-6erbuytfbces
Check this gist
https://gist.github.com/abhagsain/620120eb99cc5944d478a23757f9e00f
Source : | Last Update : Fri, 14 May 21