kill services running on a port code example Example: kill process running on port in windows netstat -ano | findstr :8080 taskkill /PID <yourid> /F