port=8080 bash command on windows code example Example: kill process on port windows netstat -ano | findstr "PORT_NUMBER" taskkill /PID PORT_NUMBER /f