How to Check Which Ports Are Open on a Windows 10 PC

Maybe you’re troubleshooting a network connectivity issue for a specific program and you need to check whether its port access is opened or your wondering if you NAS device is able to communicate with your Windows 10 PC, whatever the reason, you need to check for open ports.

How to Check Which Ports Are Open on a Windows 10 PC

In this article, we’ll provide you with detailed steps on how to check for open ports on Windows 10 using several readily available tools, either built-in or free to download and use.

How to Check Which Ports Are Open on a Windows 10 PC

There are a couple of handy tools you can use for scanning open ports in Windows. We’ll show you how to do so on NetStat, PortQry.exe, and NirSoft CurrPorts.

NetStat

One of the simplest ways to go is NetStat.exe, you can find this tool in the “System32” folder on Windows 10. With NetStat, you can see open ports or ports that a specific host uses.

There are two commands that will be useful, depending on your needs. The first option will list all active ports and the name of the process that uses them, it’s “netstat -ab.” The second option, “netstat -aon” will also provide a process ID you can later search for in the Task Manager.

Here’s what you need to know to fully understand both commands:

Netstat is short for network statistics. It will show protocol statistics as well as the current

TCP and IP network connections. And here’s the explanation of what each letter from the commands mean:

  • “a” will display all connections and listening ports.
  • “b” will display all executables that are involved in creating each listening port.
  • “o” will show the owning process ID that is related to each of the connections.
  • “n” will show the addresses and port numbers as numericals.

We’ll start with the simpler form: netstat -ab. Just follow these steps and you’ll be good to go:

  1. Open the Start menu, type “Command Prompt ” and select Run as administrator.
  2. Now, type “netstat -ab” and hit Enter.
  3. Wait for the results to load, port names will be listed next to the local IP address.
  4. Just look for the port number you need, and if it says LISTENING in the State column, it means your port is open.

The second option will come in handy when the process name isn’t enough to identify what program has a specific port tied up. In that case, just follow these steps:

  1. Again, if not already open, type in “Command Prompt” and choose Run as administrator.
  2. Once inside, type the command “netstat -aon” and hit Enter.
  3. You will now see five columns: Protocols, Local Address, Foreign Address, State, and PID (Process ID). In the Local Address, next to the IP address column you will have a port number. For example: 0.0.0.0:135. Here, 135 is the port number.
  4. In the column called State, you will see whether a specific port is opened. For opened ports, it will say LISTENING.

This is the first part that will get you the port and the process ID. To verify which app uses it, continue with these steps:

  1. In Command Prompt, find the PID (the number from the last column) for a specific port.
  2. Open the Task Manager by using the Ctrl + Shift + Esc shortcut, or right-click on an open space on your Windows taskbar and open the Task Manager.
  3. Now, go to the Details or Services tab. You’ll see all the processes on your Windows 10. Sort them by the PID column and find the PID that belongs to the port you’re trying to troubleshoot. You can see which app ties the port in the Description section.

NirSoft CurrPorts

In case you find the Command Prompt solution too difficult – we present you with its simpler alternative. This is a tool that will display your currently opened ports (TCP or IP as well as UDP). You’ll also be able to see information about a specific process such as name, path, version info, and more.

This tool has been around for quite a while and is available for Windows 10. You can find a download link at the bottom of this page.

Note: Make sure you download the right version: they have a 32x bit and 64x bit one, and, you won’t need to install this app as it’s portable, you’ll only have to unzip and run it.

Once you have CurrPorts running, we can start with the steps on how to see open ports:

  1. You’ll see a list of your computer processes, sort them by Local Port to more easily search through them.
  2. Now find and select the port you are troubleshooting.
  3. You can now see all details such as its Process Name, Process ID, State, etc.

Another way is to simply double-click on a process to see all of its details in a single window.

PortQry.exe

PortQry.exe is another handy tool that will let you scan open ports, you just have to download and extract the tool to run it through the Command Prompt.

With portqry.exe, you will be inserting specific parameters you find in the executable’s folder.

  1. For example, if you run “portqry.exe -local”, this will show used TCP and UDP ports for a local host. In addition to all parameters you can see in NetStat, Portqry.exe also shows you a number of port mappings as well as the number of ports in each state.
  2. You can also check for open ports for a remote host. Just run this command in the Command Prompt: “portqry.exe -n [hostname/IP]” Make sure to replace the hostname and IP by the remote host’s name and IP address.
  3. If you want to look for a specific port, you can run this command: “-e [port_number]”.

Additional FAQs

How Do I Check if Port 3306 is Open in Windows 10?

If you read the main part of this article, you will have an idea of how to check if a specific port is “listening” – in this case, port 3306. Just to make things simpler, here’s a brief overview:

You have three options: the first one is via NetStat, and the second one is via CurrPorts.

We recommend NetStat, as you won’t have to download new software for this:

• Run Command Prompt as administrator.

• Run this command: “netstat -ab” and hit enter.

• Wait for the results to load. Port names will be listed next to the local IP address.

• Just look for the port number you need, in this case 3306. You can press Ctrl + F and type “3306” in the word box. If the port is open, it will show in the results.

To check if port 3306 is open via CurrPorts, just follow the steps above from the “NirSoft CurrPorts” section. In step 2, look for port “3306” from the list. If the port is open, it will show in the list.

For PortQry.exe, run this command in Command Prompt “-e [3306]” and hit enter.

Configuring Open Ports in Windows 10

Knowing how to check whether a specific port is open or not can come in handy if you’re troubleshooting a program network connection. Luckily, there’s an easy way to do that.

We recommend using NetStat via Command Prompt as it’s in-built and will usually give you all the details you need. There might be a few extra steps required compared to CurrPorts, but you don’t have to download anything.

Which way do you find to be the most convenient for checking open ports on Windows 10? Let us know in the comments section below.

Leave a Reply

Your email address will not be published. Required fields are marked *

Disclaimer: Some pages on this site may include an affiliate link. This does not effect our editorial in any way.

Todays Highlights
How to See Google Search History
how to download photos from google photos