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
Step-by-step instructions
1. Find process using a port
Use netstat to find which process is using the port.
netstat -ano | findstr :8080
Replace 8080 with your target port number.
2. Identify PID
The last column in the output is the PID (Process ID).
TCP 0.0.0.0:8080 ... LISTENING 1234
3. Kill the process
Use taskkill to terminate the process.
taskkill /PID 1234 /F
Forcefully terminates the process using the specified PID.
Common issues
Run Command Prompt as Administrator.
Another process may restart automatically (e.g., service).
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
- Use netstat to find which process is using a port.
- Identify the PID (Process ID) from the result.
- 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.