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

Maybe you’re troubleshooting a network connectivity issue for a specific program, and you 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 to scan open ports in Windows. 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.

(Video) How To Check Which Ports Are Open On A Windows 10 PC

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 of the connections.
  • “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’s name 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:

(Video) How to Check List of Open Ports in Windows 10?

  1. In the Cortana Search Bar, type the following : cmd then select Run as administrator if not already opened.
    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 Nirsoft’s website towards the bottom.
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 versions. 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 its 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 (more on that below) as an add-on if you don’t want to use the command line, which is a Graphical User Interface (GUI) for PortQry.

(Video) How to view open ports and allowed traffic in Windows 10

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

How to Run PortQry.exe using 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 used TCP and UDP ports for the specified localhost.
  5. In addition to all parameters that NetStat displays, Portqry also 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. In the Command Prompt, just run portqry.exe -n [hostname/IP]. Ensure you replace the hostname and IP with the remote host’s name and IP address.
  7. If you want to look for a specific port, you can add -e [port_number] to the command line.

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

For those that prefer 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, and 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 on 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 whether a specific port is open or not can come in handy 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.

(Video) How To Check Which Ports Are Open On A Windows 10 PC

We recommend NetStat, as you won’t have to download new software for this. Run the Command Prompt as administrator. Type the 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 predefined services such as Domains and Trusts, Networking, Exchange Server, etc. The option queries all required ports for the specified services and displays them in the window of 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. It is a quick reference to each port name, value, and protocol used for each listed service.

(Video) How to Open or Close Ports on PC with Windows 10, 8 7 or Router 🖧🌐🔧

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

FAQs

How do I check if a port is open Windows 10? ›

Press the Windows key + R, then type "cmd.exe" and click OK. Enter "telnet + IP address or hostname + port number" (e.g., telnet www.example.com 1723 or telnet 10.17.xxx.xxx 5000) to run the telnet command in Command Prompt and test the TCP port status. If the port is open, only a cursor will show.

How do you see what ports are open on my PC? ›

Testing ports with the command prompt

If you would like to test ports on your computer, use the Windows command prompt and the CMD command netstat -ano. Windows will show you all currently existing network connections via open ports or open, listening ports that are currently not establishing a connection.

How do I find my port number Windows 10? ›

How to find your port number on Windows. Type “Cmd” in the search box. Open “Command Prompt”. Enter the netstat -a command to see your port numbers.

How do I check if port 443 is open? ›

You can use netstat command to list the tcp port, if 443 port is listed there and state is established means 443 is open for outbound communication.

How do you check if a port is open in Windows? ›

Answer: Open the Run command and type cmd to open the command prompt. Type: “netstat –na” and hit enter. Find port 445 under the Local Address and check the State. If it says Listening, your port is open.

What ports are open on my IP? ›

Go to Network. Click Advanced. Click the Port Scan tab.
...
To get port numbers on Windows:
  • Start up the command prompt.
  • Type ipconfig.
  • Type netstat -a for a list of all port numbers.

How can I tell if port 8080 is open? ›

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.
13 Apr 2022

How do I check if a firewall is blocking a port Windows 10? ›

Check for Blocked Port using the Command Prompt
  1. Type cmd in the search bar.
  2. Right-click on the Command Prompt and select Run as Administrator.
  3. In the command prompt, type the following command and hit enter. netsh firewall show state.
  4. This will display all the blocked and active port configured in the firewall.
14 Mar 2022

How do I know if port 22 is open Windows 10? ›

Type netstat -ab and press Enter. You'll see a long list of results, depending on what's currently connecting to the network. You'll see a list of running processes. The open port numbers will be after the last colon on the local IP address (the one on the left).

How do I use netstat on Windows? ›

How to use netstat on Windows 10
  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to show all active TCP connections and press Enter: netstat.
17 May 2022

How do I check my IP and port? ›

how do i find my ip address and port #
  1. a. Click Start, click Run, and then type cmd and hit enter.
  2. b. Type ipconfig and hit enter.
  3. c. Look under the heading "Ethernet Adapter Local Area Connection" for the IP Address listed. For example, an IP address should have 4 sets of numbers like 193.267. 1.102.

How can I tell if a port is in use? ›

Checking port usage from Windows
  1. Start Task Manager by pressing Ctrl+Shift+Esc.
  2. Click on the Processes tab and click View then Select Columns...
  3. In the Select Process Page Columns window, click PID (Process Identifier), then click OK.
11 Oct 2021

Is port 443 open by default? ›

The answer is no.. To open a port, a process/application should be installed and configured to listen to port 443.. Typically if you are using a web server with https/teamviewer/skype there is possibility to see 443 port is opened.. How to check what application is holding port 443?

How do I close open ports in Windows? ›

This requires use of the dedicated Firewall app.
  1. Open the Windows Firewall app in Windows 10. ...
  2. Open advanced iFrewall settings. ...
  3. Click 'Inbound Rules' in the sidebar.
  4. Press 'New Rule…' in the right sidebar. ...
  5. Select the 'Port' rule type and press 'Next'
  6. Choose your protocol. ...
  7. Enter the Windows 10 ports you want to open or close.
31 Mar 2021

How do I check if port is open 3389? ›

Below is a quick way to test and see whether or not the correct port (3389) is open: From your local computer, open a browser and navigate to http://portquiz.net:80/. Note: This will test the internet connection on port 80. This port is used for standard internet communication.

How do I check if port 25 is open? ›

To test if port 25 is open or closed, click the "Start" button and type "ipconfig." Type "telnet mail.domain.com 25," substituting your Internet Service provider's domain name for "domain" and hit the Enter key. If port 25 is closed, you will see a connection error.

How do I check if a port is open on a public IP? ›

8 Online Port Scanners to Find Opened Ports on Server and IP
  1. TCP Port Scan with Nmap.
  2. Geekflare's Port Scanner API.
  3. Online Port Scanner.
  4. Port Scanner by Hacker Target.
  5. Port Scanner by DNS Tools.
  6. WhatIsMyIp.
  7. Web Port Scanner.

How do I open a port in Windows 10 with Cmd? ›

To open a port using netsh, do the following.
  1. Open an elevated command prompt.
  2. Type the following command: netsh advfirewall firewall add rule name="TCP Port 6624" dir=in action=allow protocol=TCP localport=6624 . ...
  3. To delete the rule, execute the command as follows.
4 Sept 2018

What's running on port 8080? ›

Here, javaw.exe is the process which is using port 8080.

What is the netstat command? ›

The netstat command generates displays that show network status and protocol statistics. You can display the status of TCP and UDP endpoints in table format, routing table information, and interface information. netstat displays various types of network data depending on the command line option selected.

How do I enable port 8080? ›

Main steps to open ports:
  1. Locate your router's IP address.
  2. Head over to your router's settings.
  3. Enter your credentials (username and password).
  4. Look around for the Port Forwarding tab.
  5. Open your preferred port—for example, type 8080 to open port 8080.
  6. Save your settings.
14 Jan 2021

How do I unblock a port in Windows 10? ›

  1. From the Start menu, click Control Panel, click System and Security, and then click Windows Firewall. ...
  2. Click Advanced Settings.
  3. Click Inbound Rules.
  4. Click New Rule in the Actions window.
  5. Click Rule Type of Port.
  6. Click Next.
  7. On the Protocol and Ports page click TCP.
  8. Select Specific Local Ports and type a value of 80.
26 Feb 2021

How do I check if port 80 is open Windows 10? ›

Port 80 Availability Check
  1. From the Windows Start menu, select Run.
  2. In the Run dialog box, enter: cmd .
  3. Click OK.
  4. In the command window, enter: netstat -ano.
  5. A list of active connections is displayed. ...
  6. Start Windows Task Manager and select the Processes tab.
25 Mar 2021

How do I check my proxy and firewall Windows 10? ›

Using the Settings App (Windows 10) to find proxy settings

Click on Start, then click on the gear icon (Settings) at the far left. In the Windows Settings menu, click on Network & Internet. In the left pane, click on Proxy. Here you have all the settings that are related to setting up a proxy in Windows.

How do I open port 22 firewall? ›

Configure the Windows Firewall
  1. Click on Start --> Control Panel --> Windows Firewall --> Exceptions Tab.
  2. Click the Add Port... button.
  3. Name: SSH.
  4. Port Number: 22.
  5. TCP.
  6. Click OK to add the SSH exception to the firewall.
  7. Click OK to close the Windows Firewall screen.

What port is 443 used for? ›

Port 443 is a virtual port that computers use to divert network traffic. Billions of people across the globe use it every single day. Any web search you make, your computer connects with a server that hosts that information and fetches it for you. This connection is made via a port – either HTTPS or HTTP port.

What ports need to be open for firewall? ›

Required Ports to Open in Firewalls
Default Port NumberUsed For
TCP 8093, 8094Telnet Proxy (connect to device)
TCP 1098, 1099, 3873, 7911JNDI, RMI, EJB (used for SNMP, CLI, processes, and client-server file access).
7077Event post Pport
27017MongoDB application server
8 more rows
3 Apr 2017

What ports are listening? ›

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"
19 May 2022

How do I view network connections in Windows 10? ›

Select the Start button, then type settings. Select Settings > Network & internet. The status of your network connection will appear at the top. Windows 10 lets you quickly check your network connection status.

Is netstat safe? ›

It's important to keep in mind here that netstat is not infallible. As a matter of fact, a great deal of the kernel-mode rootkits in use by attackers can purposefully modify netstat so that any backdoors they install will be hidden from the output.

How do I check if port 8080 is on Windows 10? ›

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.
13 Apr 2022

How do I check if port 80 is open Windows 10? ›

Port 80 Availability Check
  1. From the Windows Start menu, select Run.
  2. In the Run dialog box, enter: cmd .
  3. Click OK.
  4. In the command window, enter: netstat -ano.
  5. A list of active connections is displayed. ...
  6. Start Windows Task Manager and select the Processes tab.
25 Mar 2021

How do I know if port 22 is open Windows 10? ›

Type netstat -ab and press Enter. You'll see a long list of results, depending on what's currently connecting to the network. You'll see a list of running processes. The open port numbers will be after the last colon on the local IP address (the one on the left).

How do I check if a firewall is blocking a port Windows 10? ›

Check for Blocked Port using the Command Prompt
  1. Type cmd in the search bar.
  2. Right-click on the Command Prompt and select Run as Administrator.
  3. In the command prompt, type the following command and hit enter. netsh firewall show state.
  4. This will display all the blocked and active port configured in the firewall.
14 Mar 2022

What ports are open on my IP? ›

Go to Network. Click Advanced. Click the Port Scan tab.
...
To get port numbers on Windows:
  • Start up the command prompt.
  • Type ipconfig.
  • Type netstat -a for a list of all port numbers.

What port number is 8080? ›

What is port number 8080 used for? Port number 8080 is usually used for web servers. When a port number is added to the end of the domain name, it drives traffic to the web server. However, users can not reserve port 8080 for secondary web servers.

How do you tell what is using a port? ›

Determine which program uses or blocks a port
  1. Open a CMD prompt.
  2. Type in the command: netstat -ano -p tcp.
  3. You'll get an output similar to this one.
  4. Look-out for the TCP port in the Local Address list and note the corresponding PID number.

What is running on port 80 Windows 10? ›

As has already been mentioned, a web server normally uses TCP port 80. On W10, the Windows Update agent uses port 80 for HTTP and port 443 for HTTPS to obtain updates.

How do I find out who is using port 80? ›

To check what's using Port 80:
  1. Open Command Line and use netstat -aon | findstr :80. -a Displays all active connections and the TCP and UDP ports on which the computer is. ...
  2. Then, to find which programs are using it, take the PID number and put them in tasklist /svc /FI "PID eq [PID Number]"
  3. Closing programs should resolve.
8 Oct 2018

Is port 80 open by default? ›

Note: TCP Port 80 is open for outgoing communications by default in most firewall software.

How do I check if port 25 is open? ›

To test if port 25 is open or closed, click the "Start" button and type "ipconfig." Type "telnet mail.domain.com 25," substituting your Internet Service provider's domain name for "domain" and hit the Enter key. If port 25 is closed, you will see a connection error.

How do I test a port between two servers? ›

Answer
  1. Open a command prompt.
  2. Type in "telnet <IP ADDRESS OF SERVER PC> <PORT>" and press enter.
  3. For example, you would type “telnet 123.45. ...
  4. If a blank screen appears then the port is open, and the test is successful.
  5. If you receive a connecting... message or an error message then something is blocking that port.
8 Jul 2020

How do I open port 22 firewall? ›

Configure the Windows Firewall
  1. Click on Start --> Control Panel --> Windows Firewall --> Exceptions Tab.
  2. Click the Add Port... button.
  3. Name: SSH.
  4. Port Number: 22.
  5. TCP.
  6. Click OK to add the SSH exception to the firewall.
  7. Click OK to close the Windows Firewall screen.

How do I unblock a port in Windows 10? ›

  1. From the Start menu, click Control Panel, click System and Security, and then click Windows Firewall. ...
  2. Click Advanced Settings.
  3. Click Inbound Rules.
  4. Click New Rule in the Actions window.
  5. Click Rule Type of Port.
  6. Click Next.
  7. On the Protocol and Ports page click TCP.
  8. Select Specific Local Ports and type a value of 80.
26 Feb 2021

How do I check my proxy and firewall Windows 10? ›

Using the Settings App (Windows 10) to find proxy settings

Click on Start, then click on the gear icon (Settings) at the far left. In the Windows Settings menu, click on Network & Internet. In the left pane, click on Proxy. Here you have all the settings that are related to setting up a proxy in Windows.

How can I tell if port 8080 is open? ›

For instance, to check whether port 8080 is open, you would type “lsof -i :8080” in the terminal. This will show you a list of all the processes using port 8080. You can also use the “nmap” command to scan for open ports on your Mac.

Videos

1. How to Open Ports or Close Ports on Windows PC and Router
(it learning)
2. How to Allow a Port or Program through Firewall Windows 10 PC
(Techademics)
3. Identify if Windows TCP/UDP Ports are open on Remote Computers
(Swapnil Infotech)
4. Com Port Settings
(Sean Hickman)
5. How to identify USB 2.0 and 3.0 ports on Windows 10 PC
(The Geek Page)
6. Selecting the Correct Port for Your Printer in Windows 10 | HP Printers | @HPSupport
(HP Support)
Top Articles
Latest Posts
Article information

Author: Duncan Muller

Last Updated: 03/20/2023

Views: 5999

Rating: 4.9 / 5 (59 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Duncan Muller

Birthday: 1997-01-13

Address: Apt. 505 914 Phillip Crossroad, O'Konborough, NV 62411

Phone: +8555305800947

Job: Construction Agent

Hobby: Shopping, Table tennis, Snowboarding, Rafting, Motor sports, Homebrewing, Taxidermy

Introduction: My name is Duncan Muller, I am a enchanting, good, gentle, modern, tasty, nice, elegant person who loves writing and wants to share my knowledge and understanding with you.