kill port ma code example Example 1: kill port mac sudo lsof -i :3000 Example 2: kill port netstat -aon | findstr 8080 taskkill /f /pid 77777