stop port 8080 code example
Example 1: kill process on port windows
netstat -ano | findstr "PORT_NUMBER"
taskkill /PID PORT_NUMBER /f
Example 2: how to stop port 8080
netstat -ano | findstr <Port Number>
Example 3: kill process running on port in windows
netstat -ano | findstr :8080
taskkill /PID <yourid> /F
Example 4: kill service by port number on windows
taskkill /F /PID PORT_NUMBER
Example 5: stop port
kill -9 $(sudo lsof -t -i:'portName')
//Ex. if portname is 3000
//then we will execute "kill -9 $(sudo lsof -t -i:3000)"
Example 6: how to stop port 8080
taskkill /F /PID <Process Id>