close port 3000 windows code example
Example 1: how to close port 3000 running
### For Linux/Mac OS search (sudo) run this in the terminal:
$ lsof -i tcp:3000
$ kill -9 PID
### On Windows:
netstat -ano | findstr :3000
tskill typeyourPIDhere
### change tskill for taskkill in git bash
Example 2: kill process running on port in windows
netstat -ano | findstr :8080
taskkill /PID <yourid> /F
Example 3: close all localhost connections
netstat -ano | findstr :yourPortNumber
taskkill /PID typeyourPIDhere /F