Guides

Step-by-step tutorials and practical fixes for servers, systems, and everyday technical issues.
Windows Guides

How to Find and Kill Process Using Port on Windows

Identify which process is using a port and terminate it quickly using netstat and taskkill.

Before you start

Open Command Prompt as Administrator.
Know the port number you want to check.
Be cautious when terminating processes.

Step-by-step instructions

1. Find process using a port

Use netstat to find which process is using the port.

Command
netstat -ano | findstr :8080
Important

Replace 8080 with your target port number.

2. Identify PID

The last column in the output is the PID (Process ID).

Example

TCP 0.0.0.0:8080 ... LISTENING 1234

3. Kill the process

Use taskkill to terminate the process.

Command
taskkill /PID 1234 /F
What it does

Forcefully terminates the process using the specified PID.

Common issues

Access denied

Run Command Prompt as Administrator.

Port still in use

Another process may restart automatically (e.g., service).

Wrong process killed

Double-check PID before executing taskkill.

About this guide

This guide shows how to identify which process is using a specific port in Windows and how to terminate it using built-in command line tools.

How to follow this guide

  1. Use netstat to find which process is using a port.
  2. Identify the PID (Process ID) from the result.
  3. Use taskkill to terminate the process safely.

Why use this method?

When a port is already in use, applications fail to start. This method helps you quickly identify and resolve port conflicts.

Frequently Asked Questions

Why is my port already in use?

Another application or background service is already bound to that port.

What is PID?

PID stands for Process ID, a unique identifier for each running process.

Is it safe to kill a process?

Only if you are sure the process is not critical to the system.

Do I need admin privileges?

Yes, in most cases you need to run Command Prompt as Administrator.