How to Check Open TCP/IP Ports in Windows

Header image. Command Prompt running "netstat -an" shown on a blue background.

Operate the command “netstat -ab” in an elevated Command Prompt, PowerShell, or Terminal window to display screen a checklist of purposes and their linked ports.

When an software wishes to make by itself available around the network, it claims a TCP/IP port, which implies that port can’t be used by everything else. So how do you examine open ports to see what application is currently making use of it?

Update: We have analyzed this method and verified that all of the measures are up-to-day, and that they all operate in Home windows 11, way too.

How Do Ports Do the job?

An IP handle specifies a personal computer — or other community system — on a community. When one particular system sends targeted traffic to another, the IP tackle is made use of to route that visitors to the ideal area. Once the visitors reaches the right spot, the gadget desires to know which app or company to mail the site visitors on to. That is wherever ports appear in.

Associated: How to Ahead Ports on Your Router

If the IP tackle is akin to a street address on a piece of mail, the port is a little something like the title of the particular person at that home who receives the mail. For the most element, you never want to fret about ports. But after in a while, you could come across an app that’s established to hear for website traffic on the similar port that yet another app currently has in use. In that case, you are going to want to discover the app that now has that port in use.

Connected: What is the Change Among TCP and UDP?

There are a quantity of approaches to inform what application has a port locked, but we’re heading to wander you by a pair of designed-in strategies that use the Command Prompt, PowerShell, or the Terminal, and then display you a excellent freeware software that tends to make it even easier. All these strategies ought to work no make any difference which edition of Windows you use.

Use Created-In Applications to See What Is Listening on a Port

We have received two commands to clearly show you. The to start with lists energetic ports along with the name of the process that’s using them. Most of the time, that command will function wonderful. Sometimes, while, the system identify will not aid you identify what application or company really has a port tied up. For those moments, you are going to want to list lively ports together with their method identifier figures and then look these procedures up in Endeavor Manager.

Possibility A single: Perspective Port Use Along with System Names

Very first, you’ll need to have to open up the Command Prompt in administrator method. Hit Start off, and then sort “command” into the research box. When you see “Command Prompt” show up in the final results, right-simply click it and select “Run as administrator,” or click on “Run as Administrator” on the ideal.

Notice: You can also use PowerShell or Terminal for this.

At the Command Prompt, sort the adhering to text and then strike Enter:

netstat -ab

Soon after you strike Enter, the results may possibly acquire a moment or two to absolutely show, so be individual. Scroll through the checklist to obtain the port (which is detailed after the colon to the ideal of the area IP address), and you’ll see the approach title shown below that line. If you’d like to make factors a very little less difficult, don’t forget that you can also pipe the effects of the command to a textual content file. You could then just look for the text file for the port quantity you’re immediately after.

Linked: How to Help you save the Command Prompt’s Output to a Textual content File in Windows

Listed here, for case in point, you can see that port 49902 is tied up by a approach named picpick.exe. PicPick is an graphic editor on our program, so we can believe the port is essentially tied up by the process that often checks for updates to the application.

Selection Two: Watch Port Use Alongside with Process Identifiers

If the name of the course of action for the port quantity you are looking up tends to make it tricky to convey to what the related app is, you can check out a model of the command that reveals course of action identifiers (PIDs) somewhat than names. Form the pursuing textual content at the Command Prompt, and then strike Enter:

netstat -aon

The column at the considerably suitable lists PIDs, so just locate the a person which is bound to the port that you are striving to troubleshoot.

The Process IDs associated with a given port.

Future, open up Activity Manager by correct-clicking any open up place on your taskbar and choosing “Task Manager.” You can also strike Ctrl+Change+Esc.

If you are working with Windows 8, 10, or 11 swap to the “Details” tab in Process Supervisor.

Connected: What’s New in the Undertaking Supervisor in Home windows 11’s 2022 Update

In older variations of Windows, you will see this info on the “Processes” tab. Sort the list of procedure by the “PID” column and come across the PID involved with the port you’re investigating. You may well be equipped to tell far more about what app or company has the port tied up by wanting at the “Description” column.

Sort by Process ID (PID), then find the associated application.

If not, ideal-click on the course of action and pick out “Open file spot.” The location of the file will possible give you clues as to what application is included.

When Once you are there, you can use the End Procedure, Open up File Location, or Go to Company(s) options to control the approach or stop it.

Use NirSoft CurrPorts to Look at What is Listening on a Port

If you are not seriously the Command Prompt variety — or you’d somewhat just use a easy utility to do all this in one particular phase — we recommend the outstanding freeware CurrPorts utility by NirSoft. Go forward and download the resource. Just make positive you get the ideal edition (the normal variation is for 32-little bit Home windows and the x64 variation is for 64-bit Home windows). It is a portable application, so you will not will need to set up it. Just unzip the download folder and operate executable.

Associated: How Do I Know if I am Managing 32-little bit or 64-bit Home windows?

In the CurrPorts window, kind by the “Local Port” column, find the port you’re investigating, and you can see every thing — the system title, PID, port, the entire route to the approach, and so on.

CurrPorts by Nirsoft is can be sorted by which local port is open.

To make it even less difficult, double-click on on any system to see each and every single detail in one window.

The details of a process in CurrPort.


When you have decided what app or support has the port you are investigating tied up, it is up to you how to cope with it. If it is an app, you may possibly have the possibility to specify a various port number. If it’s a provider — or you never have the possibility to specify a distinct port amount — you will probably have to cease the service or take away the app.

Connected: Understanding and Handling Home windows Expert services