Perhaps you’re debugging a network connection problem for a certain software and need to see whether its port access is available. What if you want to be sure your NAS device can interact with your Windows 10 PC? Whatever the reason for your search for open ports, this post will walk you through the process on Windows 10 using many tools that are either built-in or free to download and use.
In Windows, there are a few of useful programs for scanning open ports. NetStat, PortQry.exe, and NirSoft CurrPorts will show you how.
Using NetStat to Check for Open Ports in Windows 10
NetStat.exe is one of the easiest methods to check for open ports. On Windows 10, you may locate this utility in the System32 folder. NetStat displays open ports or ports used by a given host.
Netstat is an abbreviation for network statistics. It displays protocol data as well as the active TCP and IP network connections. Netstat -ab and netstat -aon are the two commands required to detect open ports.
Here’s an explanation for each letter in the orders.
- All connections and listening ports are displayed by “a.”
- “b” displays all executables that were used to create each listening port.
- “o” specifies the owning process ID for each of the connections.
- “n” displays addresses and port numbers as numbers.
Depending on your requirements, two commands are useful. The second method (netstat -aon) also returns a process ID, which you may then look for in the Task Manager.
Using ‘netstat -ab’ to Identify Open Ports
The first option (netstat -ab) reveals all active ports as well as the process name that utilizes them.
- Download PortQry, then unzip the files to the location of your choice. The default is “C:,” but this can be changed if necessary.
- If you are in the default directory, type cd c:PortQryV2 in the Command Prompt to set the executable file’s location.
- If you’re in a custom directory, type cd [drive letter]:[folder1][folder2], but replace everything in the square brackets with the actual names. Include all necessary folders.
- To start it, type portqry.exe -local. This command displays the TCP and UDP ports that are currently in use for the specified localhost.
- Portqry displays several port mappings as well as the number of ports in each state in addition to all of the parameters displayed by NetStat.
- You can also check for remote host open ports. Simply type portqry.exe -n [hostname/IP] into the Command Prompt. Make sure to replace the hostname and IP address with those of the remote host.
- If you want to search for a specific port, use the -e [port number] option on the command line.
- Download PortQryUI, then unzip the files to the location of your choice. The default is “C:,” but this can be changed if necessary.
- To launch the UI, open Windows Explorer, navigate to the PortQryUI.exe file location, and double-click it.
- To view TCP and UDP ports for the localhost (your PC), leave the Destination IP at 127.0.0.1 so that it passes through the network’s devices and configuration settings (network card, router configuration, etc.) rather than just reading from the local PC.
- Click on Manually input query ports, then type 1-65535 in the Ports to query section to see all TCP and UDP ports. Also, from the Protocol dropdown, choose TCP, UDP, or Both.
- To filter your TCP/UDP port list, select Query predefined service and then select the service to query. You may only choose one at a time.
- You can also test a remote host by changing the FQDN or domain in the top query box.
- Enter the number in Ports to query if you want to check a specific port.
Using ‘netstat -aon‘ to Identify Open Ports
The second option (netstat -aon) contains process IDs, which you’ll use in the Task Manager to identify a task/application. Because certain processes may be difficult to detect with netstat -ab, netstat -aon is utilized. As previously stated, “a” denotes all connections and ports, “o” denotes the owning process ID, and “n” denotes the addresses and port numbers as numerals.
When netstat -ab is insufficient to determine which application is using a certain port, use netstat -aon. In such situation, do the following steps:
Checking for Open Ports with NirSoft CurrPorts
If you find the Command Prompt method too difficult, another option is to utilize NirSoft CurrPorts. This utility shows the ports that are presently open (TCP, IP, and UDP). You will also see information about a particular process, such as its name, path, version information, and so on.
Please ensure that you get the proper version. They are available in 32-bit and 64-bit versions. The application is portable. Unzip the folder before running the executable program.
Once CurrPorts is up and running, proceed as follows:
Another option is to double-click a process to see its information in a separate window.
Checking for Open Ports Using PortQry.exe
PortQry.exe is another useful program for scanning open ports. You must first download PortQry (scroll down to view the download) and unpack it before running it from the Command Prompt. If you don’t want to use the command line, you may download PortQryUI (more on that below) as an add-on, which provides a Graphical User Interface (GUI) for PortQry.
You use portqry.exe to input particular parameters found in the executable’s folder.
How to Run PortQry.exe using Command Prompt
How to Run PortQry.exe using the UI Add-On
The PortQryUI add-on already contains the required PortQry version, so you don’t need to download both.
Finally, understanding how to check if a given port is open or closed might be useful while debugging a program’s network connection or looking for a port for a specific game. Fortunately, it’s not as difficult as it seems.
Netstat is the best choice since it is incorporated into the operating system and generally provides all the information you want. There may be a few more steps than with CurrPorts, but you don’t have to download anything and there’s nothing to mess up.
Windows 10 Open Ports FAQs
How do I check if Port 3306 is open in Windows 10?
You may use NetStat, CurrPorts, or PortQry to see whether port 3306 is open.
We prefer NetStat since you won’t have to download any additional software. Start the Command Prompt as an administrator. Enter the command netstat -ab and press Enter. Allow time for the results to load. Port numbers will be shown beside the local IP address. Simply search for port 3306. To find it, use Ctrl + F and put 3306 into the word box. If the port is open, it will appear as LISTENING in the results.
CurrPorts allows you to check whether port 3306 is available by sorting by Local Port and then finding port 3306. If the port is available, it will be listed.
Use the Command Prompt to locate port 3306 using PortQry.exe. Enter the command -e .
What are Predefined Services in PortQueryUI?
Preset Services provides information about a limited number of predefined services such as Domains and Trusts, Networking, Exchange Server, and so on. The option searches for all needed ports for the selected services and presents them in the UI window.
Predefined Services is located right under the Help tab and in the UI for those who are unfamiliar. Both perform distinct functions.
Without testing any ports, the Help tab option automatically shows all preset services. It provides a fast reference to each mentioned service’s port name, value, and protocol.
The UI option allows you to choose which service to watch and check port statuses.
You are looking for information, articles, knowledge about the topic How to Determine Which Ports Are Open on a Windows 10 Computer on internet, you do not find the information you need! Here are the best content compiled and compiled by the kookydroidapps.com team, along with other related topics such as: Tech.
Related videos about How to Determine Which Ports Are Open on a Windows 10 Computer