How To Enable Gaming Mode on Android 12

Back in Februry, folks at XDA had spotted an unreleased Gaming Dashboard in the works for Android 12. But up until now, there were no clear...

Saturday

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

Posted by   on

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 open. What if you need to check if your NAS device can communicate with your Windows 10 PC? Whatever the reason you need to check for open ports, this article provides detailed steps 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.


Using NetStat to Check for Open Ports


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.


Two commands are helpful, depending on your needs. The first option (netstat -ab) lists all active ports and the name of the process that uses them. The second option (netstat -aon) provides the same ports and processes but includes a process ID you can later search for in the Task Manager.


Netstat is short for network statistics. It will show protocol statistics and the current TCP and IP network connections. Here’s an explanation of what each letter from the commands means.



  • “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.


Using ‘netstat -ab’ to Identify Open Ports



  1. Open the “Start menu,” type “Command Prompt,” then select “Run as administrator.”

  2. Now, type netstat -ab without quotes, then press “Enter.”

  3. Wait for the results to load. Port names get listed next to each local IP address.

  4. Look for the port number you need, and if it says LISTENING in the State column, it means your port is open.


Using ‘netstat -aon‘ to Identify Open Ports


The second option comes in handy when the process name using “netstat -ab” isn’t enough to identify what program has a specific port tied up. In that case, follow these steps:



  1. Open a “Command Prompt’ window as an “administrator,” if it is not already opened.

  2. Once inside, type the command netstat -aon without quotes and press “Enter.”

  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.

  4. In the column called State, you will see whether a specific port is opened. For opened ports, it will say LISTENING.

  5. To verify which app uses it, find the PID (the number from the last column) for a specific port.

  6. 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.”

  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.


Checking for Open Ports with NirSoft CurrPorts


If you find the Command Prompt solution too tricky, a simpler alternative to use is NirSoft CurrPorts. This tool displays 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, 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.


Note: Ensure you download the correct version. They have 32-bit and 64-bit versions. The app is portable. Simply 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.

  2. Now, find and select the port you are troubleshooting.

  3. You can now see all the process’ details such as its Process Name, Process ID, State, etc.


Another way is to simply 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 and extract it to run it through the Command Prompt.


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



  1. In the Command Prompt, type “portqry.exe -local” without quotes. This command displays used TCP and UDP ports for a local host.

  2. In addition to all parameters that NetStat displays, Portqry also shows you a number of port mappings as well as the number of ports in each state.

  3. You can also check for open ports for a remote host. Just run “portqry.exe -n [hostname/IP]” without quotes in the Command Prompt. Ensure you replace the hostname and IP by the remote host’s name and IP address.

  4. If you want to look for a specific port, you can run this command: “-e [port_number]” without quotes.





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’s 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.


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 have two 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 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 and type “-e [3306]” without quotes, then press Enter.





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











No comments:
Write Comments

Hello Friends, welcome to autobloginc.blogspot.com we Hope You'll like it - COntact US
!!THANK YOU FOR YOUR SUPPORT!!