May 21, 2024


It's the Technology

How to Check Open TCP/IP Ports in Windows

How to Check Open TCP/IP Ports in Windows

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

Run the command “netstat -ab” in an elevated Command Prompt, PowerShell, or Terminal window to exhibit a record of apps and their associated ports.

When an application needs to make itself obtainable about the community, it promises a TCP/IP port, which means that port just cannot be applied by anything else. So how do you test open ports to see what software is currently applying it?

Update: We’ve examined this approach and verified that all of the methods are up-to-date, and that they all do the job in Windows 11, as well.

How Do Ports Function?

An IP deal with specifies a pc — or other community system — on a community. When a person gadget sends visitors to a further, the IP deal with is applied to route that site visitors to the ideal position. When the website traffic reaches the proper place, the product desires to know which application or support to ship the traffic on to. Which is the place ports appear in.

Linked: How to Ahead Ports on Your Router

If the IP address is akin to a avenue address on a piece of mail, the port is a thing like the name of the particular person at that residence who gets the mail. For the most section, you do not have to have to be concerned about ports. But after in a though, you might come across an application that’s established to pay attention for visitors on the identical port that one more app already has in use. In that scenario, you are going to need to identify the app that now has that port in use.

Similar: What is actually the Variance Involving TCP and UDP?

There are a quantity of means to explain to what software has a port locked, but we’re likely to wander you by a few of created-in means that use the Command Prompt, PowerShell, or the Terminal, and then clearly show you a excellent freeware software that tends to make it even less complicated. All these solutions really should perform no subject which model of Windows you use.

Use Developed-In Instruments to See What Is Listening on a Port

We’ve bought two instructions to show you. The initial lists active ports along with the identify of the system that is working with them. Most of the time, that command will operate wonderful. In some cases, although, the course of action title won’t support you recognize what application or provider essentially has a port tied up. For people moments, you’ll need to have to record energetic ports alongside with their method identifier figures and then glance individuals processes up in Activity Manager.

Option One particular: Look at Port Use Along with Approach Names

Initial, you are going to need to have to open the Command Prompt in administrator manner. Strike Start off, and then kind “command” into the lookup box. When you see “Command Prompt” appear in the outcomes, correct-simply click it and decide on “Run as administrator,” or click on “Run as Administrator” on the right.

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

At the Command Prompt, variety the following text and then strike Enter:

netstat -ab

Just after you strike Enter, the results may consider a moment or two to thoroughly show, so be patient. Scroll by way of the checklist to find the port (which is detailed just after the colon to the correct of the regional IP tackle), and you will see the procedure title listed less than that line. If you’d like to make things a small less complicated, try to remember that you can also pipe the outcomes of the command to a textual content file. You could then just search the textual content file for the port amount you are immediately after.

Related: How to Conserve the Command Prompt’s Output to a Text File in Home windows

Here, for instance, you can see that port 49902 is tied up by a method named picpick.exe. PicPick is an picture editor on our method, so we can assume the port is actually tied up by the process that routinely checks for updates to the app.

Solution Two: Check out Port Use Together with Procedure Identifiers

If the identify of the method for the port amount you’re wanting up will make it challenging to tell what the relevant application is, you can test a model of the command that displays procedure identifiers (PIDs) fairly than names. Style the following textual content at the Command Prompt, and then hit Enter:

netstat -aon

The column at the much right lists PIDs, so just obtain the 1 that is bound to the port that you are hoping to troubleshoot.

The Process IDs associated with a given port.

Next, open up up Activity Manager by ideal-clicking any open up place on your taskbar and deciding upon “Task Manager.” You can also strike Ctrl+Shift+Esc.

If you’re using Windows 8, 10, or 11 change to the “Details” tab in Task Supervisor.

Associated: What is New in the Process Manager in Windows 11’s 2022 Update

In more mature versions of Home windows, you will see this information and facts on the “Processes” tab. Form the checklist of system by the “PID” column and discover the PID linked with the port you’re investigating. You could be able to tell additional about what application or assistance has the port tied up by wanting at the “Description” column.

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

If not, proper-click the system and pick out “Open file place.” The site of the file will probably give you clues as to what app is included.

When When you’re there, you can use the Close Process, Open File Location, or Go to Assistance(s) selections to management the course of action or stop it.

Use NirSoft CurrPorts to Watch What is Listening on a Port

If you are not truly the Command Prompt style — or you’d rather just use a very simple utility to do all this in a person phase — we suggest the superb freeware CurrPorts utility by NirSoft. Go ahead and obtain the resource. Just make absolutely sure you get the ideal model (the normal variation is for 32-bit Home windows and the x64 version is for 64-bit Home windows). It’s a moveable application, so you will not require to set up it. Just unzip the download folder and operate executable.

Related: How Do I Know if I’m Functioning 32-bit or 64-little bit Home windows?

In the CurrPorts window, form by the “Local Port” column, obtain the port you are investigating, and you can see everything — the system identify, PID, port, the comprehensive path to the system, and so on.

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

To make it even less complicated, double-click on any course of action to see every solitary depth in just one window.

The details of a process in CurrPort.

When you have established what application or assistance has the port you’re investigating tied up, it is up to you how to take care of it. If it’s an application, you may well have the option to specify a diverse port number. If it’s a provider — or you don’t have the choice to specify a distinct port quantity — you will probable have to end the company or eliminate the app.

Similar: Knowledge and Taking care of Home windows Products and services