At any given moment, a ton of information is sent between your Windows 10 PC and the Internet. This is done using a process in which network-dependent processes look for TCP and UDP ports through which they communicate with the Internet.
In most cases, Windows 10 knows how to manage ports and ensures that traffic is being diverted through the right ports so that those processes can connect to what they need.
But sometimes two processes can be assigned to a single port, or you want a better picture of what network traffic is going into and out of your network. That is why Make tech decided to implement this tutorial. This article will show you an overview of the ports and find out which applications are using which ports.
Command Prompt method
Perhaps the easiest way to see which ports are used by which process is to use a trusted Command Prompt.
Click the button Start, import cmd, then right-click “Command Prompt” when it shows up in the search results. Click “Run as administrator”.
Once you are in Command Prompt with admin rights, enter the following command:
This will continuously bring up a list of perhaps quite long ports, along with the Windows processes that are using them. (You can press Ctrl + A, already Ctrl + C to copy all information to clipboard). On an average PC there will be two main local IP addresses containing ports on the PC.
The first, in the example case, is “127.0.0.1”. This IP address is also known as “Localhost” or “Loopback address” and any processes that listen for ports here communicate internally on the local network without using any network interfaces. The gate is actually the number you see after the colon.
Most of your processes will probably listen for ports prefixed with is “192.168.xxx.xxx”, is your IP address. This means that the processes you see listed here are listening for communications from remote Internet locations (such as web pages). Again, the port number is the number after the colon.
If you don’t mind installing a third-party application and want more control over what’s going on with all your ports, you can use a lightweight application called TCPView. The tool immediately lists the processes and their related ports.
What makes this tool better than Command Prompt is that you can proactively see ports open, close, and send packets. Just pay attention to the green, red, and yellow highlights. You can also reorder the list by clicking on the column header, making it easier to find the process you want, or find two separate processes that compete for the same portal.
If you find a process or connection you want to close, just right-click on it. Then you can choose “End process”This function is identical to the function in the Windows task manager. Or you can click “Close Connection” leave the process open but prevent it from listening on a certain port.
Source link: How to check the ports in use in Windows 10