How to Find Open Ports Windows

This article explains how to find open ports in Windows. Run netstat -ano in Command Prompt to list active connections and ports, note the PID of the port you're interested in, then use tasklist | findstr 'PID' or Task Manager's Details tab to identify which program is using it. To free up the port, end the process in Task Manager or run taskkill /f /t /im processname.exe in Command Prompt.

Why Do You Need to Check Port Usage in Windows?

Ports are like “doors” for communication between your applications and the internet. When a port is already in use, you cannot run another application on the same port. That’s why it’s important to know how to check port usage in Windows.

Methods to Check Open Ports on Windows

Method 1: Use Command Prompt to List Open Ports in Windows

The easiest way to check port usage in Windows is by using the command prompt.

  1. Open Command Prompt (press Win + R, type cmd, and press Enter).
  2. Type the following command to list open ports in Windows:
netstat -ano

This will display all active connections and ports.
run the cmd to find
run the cmd to find
run the cmd to find
3. Look at the list and find the port number you are interested in.
For example, if port 135 is in use, check its PID (Process ID) in the last column.

Method 2: Find the Program Using the Port

Once you know the PID, you can find which process is using it. Type the following command in Command Prompt:

tasklist | findstr "PID"

Replace "PID" with the actual process ID.
Example:

tasklist | findstr "604"

This shows which program is using port 604 (e.g., svchost.exe).
find using the port

Method 3: Use Task Manager to Check Port Usage in Windows

Another simple way is to use Task Manager:

  1. Press Ctrl + Shift + Esc to open Task Manager.
  2. Go to the Details tab.
  3. Match the PID number with the program name to see who is using the port.
    use task manager to check port usage

End the Process Occupying the Port

If you want to free up the port:

  • In Task Manager, right-click the process and select End Task.
    end the process occupying
  • Or use Command Prompt:
taskkill /f /t /im processname.exe

Replace processname.exe with the actual program name, e.g.:

taskkill /f /t /im tencentdl.exe

end the process occupying

Conclusion

Now you know how to:

  • List open ports in Windows
  • Check port usage in Windows
  • Find open ports in Windows
  • Identify which program is using a port
  • Stop the program to free the port

This method is especially useful if you run into errors while starting apps, setting up servers, or troubleshooting network issues.

Keywords:

checking open ports on windows, find open ports windows, check port usage windows, list open ports windows, windows netstat find port

Last Updated:   11/13/2026
Outline