- How to Check for Ports in Use in Windows 10
- Use Nirsoft CurrPorts
- Command Prompt Method
- TCPView
- How to Check Open Ports in Windows 10 Using CMD
- Way to Check Open Ports in Windows 10 Using CMD
- To find port-use with process names
- To find port-use with the process identifiers
- How to Determine What Ports are Being Used in Windows 10
- What is a Port?
- Determine What Ports are Being Used in Windows 10
- How to check if a port is blocked on a Windows machine?
- 4 Answers 4
- How to see if Windows Firewall is blocking a port or program
- How do I check if Windows Firewall is blocking a port ?
- 1. Check your firewall settings
- 2. Check for Blocked Port using the Command Prompt
- How to check if Windows Firewall is blocking a program ?
How to Check for Ports in Use in Windows 10
At any one time, there’s a whole bunch of information being sent between your Windows 10 PC and the endless void of the Internet. This is done using a process whereby network-dependent processes seek out TCP and UDP ports, which they use to communicate with the Internet. First, your data gets sent to remote ports at the destination or website your processes are trying to connect to, then it gets received at local ports back on your PC.
Most of the time, Windows 10 knows how to manage ports and ensure that traffic is being directed through the right ports so that those processes can connect with what they need to. But sometimes two processes may be assigned to one port, or maybe you just want to get a better picture of your network traffic and what’s going in and out.
That’s why wrote this guide that shows you how to get an overview of your ports and see which applications are using which ports.
Use Nirsoft CurrPorts
NirSoft is one of the best indie software developers, giving us great utilities, like PassView and WirelessKeyView. While some people will prefer checking their ports without installing third-party software (in which case, scroll down to the CMD method), CurrPorts is easily the fastest and most convenient way to view your ports.
Once you’ve installed CurrPorts, just open it to see a list of all your ports currently in use. If you’re looking for local ports in use, just click the “Local Port” column at the top to order the list by port number (handy if you’re looking for a specific one). You can do the same thing with remote ports, too.
If you want to really find specific ports, click the “Advanced Filters” icon at the top and enter your string in the format they suggest. It should look something like the below image.
Hit OK when you’re ready, and the list will filter down to your queries.
Command Prompt Method
The integrated – though not necessarily the simplest – way to check open ports is to use the trusty command prompt.
Click the Start button, type cmd , then right-click “Command Prompt” when it shows up in the search results. Click “Run as administrator.”
Once you’re in the elevated command prompt, enter the following command:
This will steadily bring up a list of ports that is probably quite long, along with the Windows processes that are using them. (You can press Ctrl + A , then Ctrl + C to copy all information to the clipboard.) On the average PC, there will be two main local IP addresses that contain ports on your PC.
The first, in our case, is “127.0.0.1.” This IP address is otherwise known as “localhost” or a “loopback address,” and any process listening to ports here is communicating internally on your local network without using any network interface. The actual port is the number you see after the colon. (See image below.)
The bulk of your processes will probably be listening to ports prefixed with “192.168.xxx.xxx,” which is your IP address. This means the processes you see listed here are listening for communications from remote Internet locations (such as websites). Again, the port number is the number after the colon.
TCPView
If you don’t mind installing a third-party app and want to have more control over what’s going on with all your ports, you can use a lightweight app called TCPView. This immediately brings up a list of processes and their associated ports.
What make this better than the command prompt is that you can actively see the ports opening, closing and sending packets. Just look for the green, red and yellow highlights. You can also reorder the list by clicking the column headings, making it easier to find the process you want or two separate processes vying for the same port.
If you do find a process or connection you want to close, just right-click that process. You can then select “End process,” which is exactly the same function as the one in Windows task manager. Or you can click “Close Connection” to leave the process open but stop it from listening on a given port.
If you’re having some trouble in Windows 10, then see whether a Windows update may be causing it. We also have a handy guide for managing the health of your hard drive in Windows 10.
Related:
Content Manager at Make Tech Easier. Enjoys Android, Windows, and tinkering with retro console emulation to breaking point.
How to Check Open Ports in Windows 10 Using CMD
In this article, you will see the procedure to Check Open Ports in Windows 10 Using CMD (or Command Prompt). When an app uses a TCP/IP port on your device in order to access a network, that port would be locked out – no other program may be able to use it. And while everything related to ports and traffic is usually taken care of on its own by the system, there might be situations when you might have to know the application that is blocking a specific port.
Here you can find some built-in ways to do so- specifically the ways to check open ports using CMD or Command Prompt. Apart from using the Command Prompt, you can even consider using some third-party applications that can easily list the ports and the apps or processes that are using them.
Way to Check Open Ports in Windows 10 Using CMD
Here is how to check open Ports in Windows 10 Using CMD –
To find port-use with process names
Follow along with these steps to get the list of ports in use and the names of the processes tied up with them respectively.
Step-1: Open Run dialog box by pressing Win+R hotkeys. Type cmd in the text box and hit Shift + Ctrl + Enter keys altogether.
Step-2: Hit Yes on the UAC prompt.
Step-3: This will let you access an elevated Command Prompt on the screen. Here, type in or copy-paste the below-given code and hit Enter.
Wait for the entire result to load. Once you successfully run this command, simply scroll down to the port number you want to check. As shown below, you’ll be able to see the process’ name respectively below the port it is linked to.
To find port-use with the process identifiers
Usually, identifying the application which represented by a specific process name can be tricky. This method might help you identify the application that a process relates to.
Here also, first of all, launch the “Command Prompt” with admin rights using any of your preferred methods.
Copy-paste or type the below code and ensure to hit Enter.
Finally, the result now will contain the “PID” or the process identifiers instead of the names. Simply scroll down to the port you want to check and note the PID corresponding to it.
Moving ahead, open Task Manager. To do so, perform a right-click on the taskbar and select the option namely “Task Manager”.
Go to the Processes tab. Right-click on the Name column and choose PID (see snapshot).
You just need to find the PID you note earlier. The ‘Name’ column corresponding to the PID must reveal the application associated with the port.
How to Determine What Ports are Being Used in Windows 10
Last year we suffered the BitCoin miner virus which locked our computer and levied a ransom. And yet, the main reason for the spread of the virus was that the unused ports did not close. So, to guard against happening again, we have to determine what ports are being used in windows and then turn it off.
What is a Port?
When it comes to port, it’s necessary to talk about IP as well. Let me draw an analogy to describe the relationship between the Port and IP. Once upon a time, if you want to send a letter to your friend in a faraway place, you need to write down your address and his address on the envelope. The envelope is amount to the data package while both addresses are amount to IP. When the postman sends the letter to your friend’s house, and if your friend opens the door to get it, now the door is equal to the port. If your friend doesn’t open the door, that is to say, the port closed. After that, the letter will be sent back to you. In network technology, ports divide into two classes. One is a physical port, such as USB port. The second is the logical port, which generally refers to the port in the TCP/IP protocol. These port will cause some virus and harm your PC. As a result, there is necessary to check if the port is open.
Determine What Ports are Being Used in Windows 10
Step 1: Hit Windows + R to invoke Run dialog and type cmd to open Command Prompt.
Step 2: Type netstat -ano to list states of all ports.
Alternatively, type telnet
to check if port is open.
Step 3: Locate to the target port and view the corresponding PID in the final column. For example, the PID of port 2179 is 3800.
Step 4: Input tasklist|findstr “3800” and hit Enter on the keyboard to view which service takes up the port.
Step 5: To end up this service, run taskkill /f /t /im vmms.exe.
13 people found this article useful This article was helpful
How to check if a port is blocked on a Windows machine?
On the Windows platform, what native options to I have to check if a port (3306, for example) on my local machine (as in localhost ), is being blocked?
4 Answers 4
Since you are on a Windows machine, these things can be done:
Execute the following command and look for a «:3306» listener (you did not mention UDP/TCP). This will confirm there is something running on the port.
After this, if you are expecting incoming connections on this port and feel that the firewall may be blocking them, you could use start windows firewall logging and check the logs for dropped connections
- Go to Windows Firewall, Advanced settings
- Click on the Settings button next to «Local Area Connection»
- Select «Log dropped packets»
- Look at the log file location (if not present, define one)
- Click OK
- Now, when the connection attempt is made (assuming you know when this is done), look at the log file for a drop on port 3306.
- If this is seen, you will want to add an exception for this port.
There is one more command to check the firewall state
(Updated for Windows 7 users — as referred by Nick below — use netsh advfirewall firewall)
netsh firewall show state
- this will list the blocked ports as well as active listening ports with application associations
This command will dump the Windows firewall configuration detail
netsh firewall show config
If you have an active block (incoming connections are being dropped by firewall) after you start logging, you should see that in the log.
If you are running an application/service that is listening on 3306, the firewall config should show it to be Enabled. If this is not seen, you have probably missed adding an exception with the firewall to allow this app/service.
Finally, port 3306 is typically used for MySQL. So, I presume you are running MySQL server on this windows machine. You should therefore see a listener for 3306 accepting incoming connections. If you do not see that, you need to work with your application (MySQL) to get that started first.
How to see if Windows Firewall is blocking a port or program
- Wondering how you can check if a website is blocked by your Firewall? Check the firewall settings.
- The Windows Firewall settings will give you show you any port is blocked on your PC.
- Easily fix any problem caused by your Firewall blocking the Internet with the solutions below.
- The Windows Firewall also allows you to select which programs can run on your computer.
- Download Restoro PC Repair Tool that comes with Patented Technologies (patent available here).
- Click Start Scan to find Windows issues that could be causing PC problems.
- Click Repair All to fix issues affecting your computer’s security and performance
- Restoro has been downloaded by 0 readers this month.
The Windows Firewall is a built-in security application that comes with Windows OS since the beginning. The software is built to filter network data transmission to and from your Windows system.
The Firewall will block any suspicious and harmful connection depending on the threat level.
The users can configure the Windows Firewall settings as per their need to block or open port in Windows 10 and other versions. However, at times the Firewall may block ports or programs accidentally by user’s or administrator’s misconfiguration.
Now, if you want to know if the Windows Firewall is blocking a port or program on your system, you need to check your settings. Here’s how to check firewall settings.
How do I check if Windows Firewall is blocking a port ?
1. Check your firewall settings
- Press Windows Key + R to open Run.
- Type control and press OK to open Control Panel.
- Click on System and Security.
- Scroll down and open Administrative Tools.
- In the Administrative Tools window, open Windows Defender Firewall with Advanced Security.
- Click on Actions and select Properties.
- Now select your preferred Profile (Domain, Private, Publick).
- In the Logging section, click on the Customize button.
- Click on the drop-down menu for Log dropped packets: and select Yes.
- Take note of the pfirewall.log path in the Name section.
- Click OK to save the changes.
- Open File Explorer and go to the path where the log file is saved.
- It should look something like this: %systemroot%system32LogFilesFirewall
- Click on the pfirewall.log file and check for any blocked ports.
2. Check for Blocked Port using the Command Prompt
- Type cmd in the search bar.
- Right-click on the Command Prompt and select Run as Administrator.
- In the command prompt, type the following command and hit enter.
- netsh firewall show state
- This will display all the blocked and active port configured in the firewall.
How to check if Windows Firewall is blocking a program ?
- Press Windows Key + R to open Run.
- Type control and press OK to open Control Panel.
- Click on System and Security.
- Click on Windows Defender Firewall.
- From the left pane Allow an app or feature through Windows Defender Firewall.
- In the allowed app window, scroll through all the apps.
- Locate the app you want to check and see if the app is checked.
- If it is unchecked, the app is blocked on the Firewall.
- If your program is blocked, simply uncheck the app and click OK.
In the Customize Settings window, click the circle(s) next to Turn off Windows Defender Firewall for public networks, private networks, or both.
That’s about it for this article. Make sure you follow the solutions thoroughly and see what works for you. Also, feel free to send us any feedback regarding the subject in the comment section below.