Answered by : george-kirby
netstat -ano | findstr :8080 // listening value
taskkill /pid 11740 /f
Source : https://stackoverflow.com/questions/8688949/how-to-close-tcp-and-udp-ports-via-windows-command-line | Last Update : Thu, 14 Oct 21
Answered by : dangerous-dogfish-5wma8xsg2f6n
npx kill-port 8080
Source : https://stackoverflow.com/questions/39632667/how-do-i-kill-the-process-currently-using-a-port-on-localhost-in-windows | Last Update : Sat, 26 Sep 20
Answered by : larissa-oliveira
sudo kill $(sudo lsof -t -i:3000)
Source : | Last Update : Tue, 12 Apr 22
Answered by : calm-crossbill-xbc1ulxw6sb4
sudo lsof -i :5955
Source : https://stackoverflow.com/questions/12397175/how-do-i-close-an-open-port-from-the-terminal-on-the-mac | Last Update : Sat, 04 Jul 20
Answered by : funny-frog-pnmlv58l6nmt
netstat -ano | findstr < Port Number >
taskkill /F /PID < Process Id >
Source : https://javabypatel.blogspot.com/2017/10/kill-process-on-port-8080-in-windows.html | Last Update : Wed, 22 Jul 20
Answered by : waqas-pathan
lsof -n -i4TCP:8080 <-- get process id of what you want to close
sudo kill -9 processID <-- close desired process
Source : https://stackoverflow.com/questions/12397175/how-do-i-close-an-open-port-from-the-terminal-on-the-mac | Last Update : Thu, 28 Apr 22