CHARLIESTRAS

Find Process Listening On Port

Solution

Suppose the port number is 3000

  • Windows
1netstat -ano | findstr :3000

Suppose the number of process which listening the port 3000 is 42. To kill it

1taskkill /PID 42 /F
  • Mac/Linux
1lsof -i tcp:3000

Kill the process

1kill 42