Killing Processes on Ports With Windows

andrewallison

Andy Allison

Posted on December 7, 2022

Killing Processes on Ports With Windows

NestJs Port Issues

I've had some major issues with the ports when using NestJs. It keeps locking it's self out of the port it's using. This article will show you how to kill them with out needing to reset the machine.

DAMN PORT ISSUES

Using a windows PowerShell terminal with elevated privilages. "7000" can be replaced with the port you need.

netstat -aon | findStr "7000"
Enter fullscreen mode Exit fullscreen mode

Results from port scan

taskKill /PID 10436 /F
Enter fullscreen mode Exit fullscreen mode

Killing ports with fire

Be careful. This is as much a reminder for me as it is instructions for you. Disclaimer... I hold no responsibility for the stuff you kill with this article

💖 💪 🙅 🚩
andrewallison
Andy Allison

Posted on December 7, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related