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

Maybe you’re troubleshooting a network connectivity issue for a specific program and need to check whether its port access is open. What if you need to confirm that your NAS device can communicate with your Windows 10 PC? Whatever reason you need to look for open ports, this article provides detailed steps to check them on Windows 10 using several available tools, either built-in or free to download and use.

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

There are a couple of handy tools in Windows to scan open ports. You’ll see how to do so on NetStat, PortQry.exe, and NirSoft CurrPorts.

Using NetStat to Check for Open Ports in Windows 10

One of the simplest ways to check for open ports is to use 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.

Netstat is short for network statistics. It shows protocol statistics and the current TCP and IP network connections. The two commands needed to identify open ports in netstat -ab and netstat -aon.

Here’s an explanation of what each letter from the commands means.

  • “a” displays all connections and listening ports.
  • “b” shows all executables involved in creating each listening port.
  • “o” provides the owning process ID related to each connection.
  • “n” shows the addresses and port numbers as numerals.

Two commands are helpful, depending on your needs. The second option (netstat -aon) additionally provides a process ID you can later search for in the Task Manager.

Using ‘netstat -ab’ to Identify Open Ports

The first option you’ll use (netstat -ab) lists all active ports and the process that uses them.

  1. In the Cortana Search Bar, type the following: cmd then select Run as administrator.
    How to Check Which Ports Are Open on a Windows 10 PC (2)
  2. Now, type netstat -ab, then press Enter.
    How to Check Which Ports Are Open on a Windows 10 PC (3)
  3. Wait for the results to load. Port names get listed next to each local IP address.
    How to Check Which Ports Are Open on a Windows 10 PC (4)
  4. Look for the port number you need; if it says LISTENING in the State column, it means your port is open.
    How to Check Which Ports Are Open on a Windows 10 PC (5)

Using ‘netstat -aon‘ to Identify Open Ports

The second option(netstat -aon) includes process IDs, which you’ll use to identify a task/application in the Task Manager. Some processes may be challenging to identify using netstat -ab, so netstat -aon gets used. As referenced above, “a” represents all connections and ports, “o” represents the owning process ID, and “n” represents the addresses and port numbers as numerals.

Using netstat -aon comes in handy when netstat -ab isn’t enough to identify what program has a specific port tied up. In that case, follow these steps:

  1. In the Cortana Search Bar, type cmd and choose “Run as administrator.”
    How to Check Which Ports Are Open on a Windows 10 PC (6)
  2. Once inside, type the following command without quotes: netstat -aon then press Enter.
    How to Check Which Ports Are Open on a Windows 10 PC (7)
  3. You will now see five columns: Protocols, Local Address, Foreign Address, State, and PID (Process ID). In the Local Address, you have a port number. For example: 0.0.0.0:135. Here, 135 is the port number.
    How to Check Which Ports Are Open on a Windows 10 PC (8)
  4. In the “State” column, you will see whether a specific port appears opened. For opened ports, it will say LISTENING.
    How to Check Which Ports Are Open on a Windows 10 PC (9)
  5. To verify which app uses a particular port, find the PID (the number from the last column) for a specific port.
    How to Check Which Ports Are Open on a Windows 10 PC (10)
  6. Open the Task Manager by pressing Ctrl + Shift + Esc.
    How to Check Which Ports Are Open on a Windows 10 PC (11)
  7. Go to the Details or Services tab to see all processes on your Windows 10 system. Sort them by the PID column to find the PID for the port you’re trying to troubleshoot. You can see which app uses the port in the Description section.
    How to Check Which Ports Are Open on a Windows 10 PC (12)

Checking for Open Ports with NirSoft CurrPorts

If you find the Command Prompt solution too tricky, a simpler alternative is to use NirSoft CurrPorts. This tool displays your currently opened ports (TCP, IP, and UDP). You’ll also see information about a specific process, such as name, path, version info, etc.

This tool has been around for quite a while and is available for Windows 10. You can find the NirSoft Currports download link at the bottom of Nirsoft’s website.
How to Check Which Ports Are Open on a Windows 10 PC (13)

Note: Ensure you download the correct version. They have 32-bit and 64-bit releases. The app is portable. Unzip the folder, then run the executable file.

Once you have CurrPorts running, perform the following steps:

  1. You’ll see a list of your computer processes. Sort them by Local Port to search through them more easily.
    How to Check Which Ports Are Open on a Windows 10 PC (14)
  2. Now, find and select the port you are troubleshooting.
    How to Check Which Ports Are Open on a Windows 10 PC (15)
  3. You can now see all the process details, such as Process Name, Process ID, State, etc.
    How to Check Which Ports Are Open on a Windows 10 PC (16)

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

Checking for Open Ports Using PortQry.exe

PortQry.exe is another handy tool that lets you scan open ports. You download PortQry (scroll down to see the download) and extract it to run it through the Command Prompt. You can also download PortQryUI, a Graphical User Interface (GUI) for PortQry (more on that below), as an add-on if you don’t want to use the command line.

With portqry.exe, you insert specific parameters that can be found in the executable’s folder.

How to Run PortQry.exe Using the Command Prompt

  1. Download PortQry, then unzip the files to your chosen location. The default is “C:\” but can be changed if desired.
  2. If in the default directory, type cd c:\PortQryV2\ in the Command Prompt to set the location of the executable file.
  3. If in a custom directory, type cd [drive letter]:\[folder1]\[folder2]\ but replace all content in the square brackets with actual names. Include all folders needed.
  4. Type portqry.exe -local to launch it. This command displays the TCP and UDP ports the specified ‘localhost’ uses.
  5. In addition to all the parameters NetStat displays, Portqry shows you several port mappings and the number of ports in each state.
  6. You can also check for open ports for a remote host. Run portqry.exe -n [hostname/IP] in the Command Prompt. Replace the hostname and IP sections with the remote host’s name and IP address. Add -e [port_number] to the command line to look for a specific port.

How to Run PortQry.exe using the UI Add-On

For those preferring to use a graphical interface instead of commands when using PortQry.exe, Microsoft offers an add-on named PortQryUI.
How to Check Which Ports Are Open on a Windows 10 PC (17)

The PortQryUI add-on already includes the necessary version of PortQry, so you don’t need both downloads to use it.

  1. Download PortQryUI, then unzip the files to your chosen location. The default is “C:\” but can be changed if desired.
  2. Launch Windows Explorer, navigate to the PortQryUI.exe file location, then click it to launch the UI.
  3. To view TCP and UDP ports for the ‘localhost’ (your PC), leave the Destination IP as 127.0.0.1 so it passes through the network’s devices and configuration settings (network card, router’s config, etc.) and not just read from the local PC.
  4. To view all TCP and UDP ports, click on Manually input query ports, then type 1-65535 in the Ports to query section. Also, select TCP, UDP, or Both from the Protocol dropdown.
  5. To filter your TCP/UDP ports list, click Query predefined service, then choose which service to query. You can only select one at a time.
  6. You can also check a remote host by changing the FQDN or domain in the query box at the top.
  7. If you want to check a specific port, enter the number in Ports to query.

In closing, knowing how to check if a specific port is open is beneficial if you’re troubleshooting a program’s network connection or need a port for a particular game. Luckily, it’s not as challenging to do as it looks.

Out of all the options listed above, Netstat is recommended as it’s built into the OS and usually gives 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, and there’s nothing to screw up.

Windows 10 Open Ports FAQs

How do I check if Port 3306 is open in Windows 10?

To verify if port 3306 is open, you can use NetStat, CurrPorts, or PortQry.

We recommend NetStat, as you won’t have to download new software. Run the Command Prompt as administrator. Type the following 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 port 3306. You can press Ctrl + F and type 3306 in the word box to search for it. If the port is open, it will show in the results as LISTENING.

To check if port 3306 is open via CurrPorts, just sort by Local Port, then find port 3306. If the port is available, it will show in the list.

To use PortQry.exe to find port 3306, use the Command Prompt. Type -e [3306], then press Enter.

What are Predefined Services in PortQueryUI?

Predefined Services offers details on a small handful of services such as Domains and Trusts, Networking, Exchange Servers, etc. The option queries all required ports for the specified services and displays them in the UI.

For those who don’t know where Predefined Services resides, it is directly under the Help tab and in the UI. Both serve different needs.

The Help tab option immediately displays all predefined services without testing any ports, providing a quick reference to each port name, value, and protocol used for each listed service.

The UI option lets you specify what service you want to view and see port statuses.

Related Posts

How To Find Open Ports in NmapHow To Scan All Ports with nMapHow To Open the Task Manager inHow To Open the Command Prompt on a Windows 10 or 11 PCHow to Check Which Version of Windows You Are RunningHow To Check How Much Power a Windows PC or Mac is UsingHow to Check Mouse DPI on a Windows PC, Mac, or ChromebookHow to Check the CPU Temperature on a Windows 11 PCHow to Check How Much Ram a Windows 10 Device Has

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

FAQs

How do I see what ports are open on Windows 10? ›

First, open the Command Prompt by typing “cmd” into the Windows search bar and pressing enter. Then, type “netstat -a” into the Command Prompt and press enter. This will display a list of all the open ports, along with the process ID that is using the port and the name of the program.

How do you test which ports are open? ›

How to check for open ports on Windows
  • Open the Command Prompt. ...
  • Type “netstat -aon” and hit enter.
  • Look for the port numbers in the LISTening state. ...
  • If the port numbers aren't in the LISTening state, you'll need to open them manually.
Aug 17, 2022

How to check which ports are being used? ›

Use netstat -anob to list all established and listening ports. The command "netstat -anob" shows all in-use ports and the binary (application) which use them. Example: In this example we see the process msg_server.exe which is listening on ports 3600 and 3900.

What is the command to check all the open ports of your machine? ›

Use the netstat command to list all open ports, including TCP and UDP, which are the most common protocols for packet transmission in the network layer. This will print: all listening sockets ( -l ) the port number ( -n )

How do you check ports are open or not in Windows? ›

Press the 'windows' key and type 'cmd'. Press “Command Prompt”. Step 3: On the command prompt, type the command “telnet + IP address or hostname + port number” and check the status of the provided TCP port. Step 4: If only the blinking cursor is visible, then the port is open.

How do I find hidden ports in Windows 10? ›

Step 1: Open the Device Manager. Step 2: From the menu bar, click View. Step 3: Choose “Show hidden devices”. Step 4: From the list of hidden devices, find the Ports (COM & LPT).

How do I see all open ports on my IP address? ›

Start up the command prompt. Type ipconfig. Type netstat -a for a list of all port numbers.

How do I check if port 443 is open? ›

Check if port 443 is open:

On Windows: open the Command Prompt on your Windows machine > type telnet <IP address or domain name> 443 and press Enter. If the command returns “Connected to <IP address or domain name>”, then port 443 is open.

What is the netstat command in Windows? ›

netstat provides statistics about all active connections so you can find out which computers or networks a PC is connected to. You can use the network tool for Windows, Linux, and macOS conveniently via the command line.

How do I free up ports on Windows? ›

Here are the steps for Windows:
  1. Find the process ID (PID) of the port (replace the 'portNumber' with the number) netstat -ano | findstr :portNumber. Copy the PID number for the next step.
  2. Kill the process. First, try this (replace typeyourPIDhere with the number you copied above): taskkill /PID typeyourPIDhere /F.
Mar 30, 2020

How to find which port is used by which process in Windows? ›

Go to Processes/Services in the Task Manager (for processes, select "Show processes of all users"). "Select View\Columns -> Enable PID (Process ID)". Now you can see which program or service uses which PID and you know what occupies the corresponding port.

How to check if port 8080 is open in Windows? ›

Use the Windows netstat command to identify which applications are using port 8080:
  1. Hold down the Windows key and press the R key to open the Run dialog.
  2. Type “cmd” and click OK in the Run dialog.
  3. Verify the Command Prompt opens.
  4. Type “netstat -a -n -o | find "8080"". A list of processes using port 8080 are displayed.
Jun 2, 2023

What ports are listening to Windows? ›

In order to check which application is listening on a port, you can use the following command from the command line:
  • For Microsoft Windows: netstat -ano | find "1234" | find "LISTEN" tasklist /fi "PID eq 1234"
  • For Linux: netstat -anpe | grep "1234" | grep "LISTEN"
May 19, 2022

How to check USB connections on Windows 10? ›

To check the USB ports on your Windows 10 device, open Device Manager by pressing the Windows Key + X and selecting Device Manager. In the Device Manager window, expand the 'Universal Serial Bus controllers' branch. This will display all of the connected USB devices, as well as their status.

Top Articles
Latest Posts
Article information

Author: Arielle Torp

Last Updated:

Views: 6000

Rating: 4 / 5 (41 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Arielle Torp

Birthday: 1997-09-20

Address: 87313 Erdman Vista, North Dustinborough, WA 37563

Phone: +97216742823598

Job: Central Technology Officer

Hobby: Taekwondo, Macrame, Foreign language learning, Kite flying, Cooking, Skiing, Computer programming

Introduction: My name is Arielle Torp, I am a comfortable, kind, zealous, lovely, jolly, colorful, adventurous person who loves writing and wants to share my knowledge and understanding with you.