Narain Sagar
Apr 18, 2020 · 1 min read

Windows - Kill process by its Port Number

DO YOU HAVE A RUNNING PROCESS ON WINDOWS AND NEED TO KILL IT BY ITS PORT NUMBER?

If you need to kill a process manually on Windows it’s actually pretty easy. First, fire up a command prompt and execute the following command.

> netstat -a -o -n

To kill the process we need to find the PID of the process in question. I just run down the list by port until I find port 8080 and here you will see the process id was 28344.

Cheers,

References:

Narain Sagar

Full Stack JavaScript Developer, Currently focusing on Node.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store