DEV Community

Cover image for Killing Processes on Ports With Windows
Andy Allison
Andy Allison

Posted on

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

Top comments (0)