Loading gists…
Kill multiple ports on node js
| 1 | Find the process (PID) using the port |
| 2 | Replace 3000 with your Node.js server port. |
| 3 | |
| 4 | netstat -ano | findstr :3000 |
| 5 | Example output: |
| 6 | |
| 7 | TCP 0.0.0.0:3000 0.0.0.0:0 LISTENING 12345 |
| 8 | |
| 9 | 12345 is the PID (Process ID). |
| 10 | |
| 11 | Kill the process using PID |
| 12 | taskkill /PID 12345 /F |
| 13 | |
| 14 | /F → force kill |