So, for some reason, my connection to a remote db was very flaky today. This caused nodemon to crash in VS Code and trusty Ctrl-C didn’t get me out of it.

Since this was happening on a Windows machine, I new it was that time…

Time to figure out how to quickly identify and kill the process from the terminal.

Here’s what I discovered: First step is to identify the process by port with the netstat command (here searching for port 3737)

netstat -ano | finstr:3737

You should see output something like this:

netstat output

Identify the process, 48280 in this case. Then kill the process with TaskKill

TaskKill /PID 48280 /F

Et, voilĂ !

Last modified: August 11, 2020

Author