DEV Community

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

Posted on

2 2

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

SurveyJS custom survey software

Simplify data collection in your JS app with a fully integrated form management platform. Includes support for custom question types, skip logic, integrated CCS editor, PDF export, real-time analytics & more. Integrates with any backend system, giving you full control over your data and no user limits.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs