---
title: "How can I remove the process currently using a port on localhost in Windows?"  
description: "How can I remove the process currently using a port on localhost in Windows?"  
author: "Utpal Vishwas"  
published: 2023-07-14  
updated: 2023-07-15  
canonical: https://www.mindstick.com/forum/159097/how-can-i-remove-the-process-currently-using-a-port-on-localhost-in-windows  
category: "windows controls"  
tags: ["windows", "processor"]  
reading_time: 2 minutes  

---

# How can I remove the process currently using a port on localhost in Windows?

How can I [remove](https://yourviews.mindstick.com/story/4554/8-harmful-weeds-to-remove-from-garden) the [process](https://yourviews.mindstick.com/story/1525/7-important-factors-that-may-affect-the-learning-process) currently using a [port](https://www.mindstick.com/blog/11936/igor-mazepa-takes-part-in-another-corruption-operation-connected-with-odessa-port-plant) on localhost in [Windows](https://www.mindstick.com/articles/311752/how-to-install-and-use-the-google-wifi-software-on-a-windows-or-mac-computer)?

## Replies

### Reply by Aryan Kumar

There are a few ways to remove the process currently using a port on localhost in Windows. Here are two methods:

**Method 1: Using the** `netstat` **command**

The `netstat` command is a command-line utility that displays network statistics. You can use the `netstat` command to find the process that is using a specific port.

To do this, follow these steps:

1. Open a command prompt.
2. Run the following command:

```plaintext
netstat -ano | findstr :PORT
```

Replace `PORT` with the port number that you want to find the process for. For example, to find the process that is using port 8080, you would run the following command:

```plaintext
netstat -ano | findstr :8080
```

This will display a list of all the processes that are using port 8080. The process ID (PID) of the process will be listed in the second column.

1. Once you have found the PID of the process, you can use the `taskkill` command to kill the process.

To do this, run the following command:

```plaintext
taskkill /PID PID /F
```

Replace `PID` with the PID of the process that you want to kill. For example, to kill the process with PID 1234, you would run the following command:

```plaintext
taskkill /PID 1234 /F
```

**Method 2: Using the** `CurrPorts` **tool**

The `CurrPorts` tool is a third-party tool that can be used to view and manage open ports on Windows. You can use the `CurrPorts` tool to find the process that is using a specific port and then kill the process.

To do this, download and install the `CurrPorts` tool. Once the tool is installed, open it and click on the **Processes** tab.

In the **Processes** tab, you will see a list of all the processes that are currently running on your computer. The port number that each process is using will be listed in the **Local Port** column.

Once you have found the process that is using the port that you want to remove, right-click the process and select **Kill**.

This will kill the process and the port will be freed up.


---

Original Source: https://www.mindstick.com/forum/159097/how-can-i-remove-the-process-currently-using-a-port-on-localhost-in-windows

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
