TCP/IP Check used ports in Windows 11 or Windows 10

Stefan
TCP/IP Check used ports in Windows 11 or Windows 10

If you try to open a TCP port, but this port is in use, an app on your computer is using this port.

Every app that makes a network or internet connection in Windows communicates via a protocol. In most cases this is the TCP protocol. TCP means Transmission Control Protocol and its purpose is to send “packets” to another computer, usually a server, which communicates back with “packets”.

To communicate, a port number is often used by an app. It is this port that the app communicates with. In Windows you can find out which app is using which port. This is useful, for example, to know which port(s) are in use with which app(s). By closing or deleting the app, you can still use the port for another app.

There are many reasons for wanting to know the port number of an app. In general it concerns network or solve internet problems. This article explains how to check the port number in use by an app.

TCP/IP Check used ports in Windows 11 or Windows 10

There are several ways to check open ports used by an app. In this article I offer you two ways, the first is through netstat.

Click on the Start button. In the search box type: Command Prompt. Then right-click on the Command Prompt result and click “Run as Administrator”.

In the Command Prompt window, type the command:

netstat -ab

You will now see a result with protocols (TCP or UDP), process names, IP addresses and port numbers in use by the process.

Read also
Find Windows 11 version, edition or build number

Open port number in process lookup via netstat

The second way to find listening ports (in use) by an app is through the help of software. There is a lot of software available that makes the display of netstat easier to read.

The most commonly used tool to display open ports per app is Sysinternal TCPView.

TCPView is a Windows program that shows you detailed lists of all TCP and UDP endpoints on your system, including the local and remote addresses and the status of TCP connections.

On Windows Server 2008, Vista, and XP, TCPView also reports the name of the process that owns the endpoint. TCPView provides a more informative and well-organized subset of the Netstat program that comes with Windows.

Download Sysinternals TCPView

Open TCPView. In the “Local port” column you will see all local open ports. On the left you will see “Process name”. This is the process name of the app using the port.

To filter more specifically, you can use the “Protocol” column. This shows whether the TCP or UDP protocol is used.

Then you can filter the “State” column. The “State” listening means that the port is in use and listening for an incoming connection. “Established” means that the port is also in use but has established a connection with the “Remote address” and the “Remote port”, both of which can be found as a column. This is the IP address and port used to communicate with the other device that is connected.

On the far right you will find the “module name”, a reference to the module in which the process is located.

Read also
Windows File Recovery (Winfr.exe) - Recover files

Sysinternals tcpview

I hope this has helped you trace open ports in use on your computer back to an app or process name. Thank you for reading!

Also read:


Problem solved?


Help other people too.
Share this article on a website, forum or via social media.

Join our new computer forum for questions and computer help.
3 comments
  1. Hello, I just updated my Windows version to Windows 11, which was 10 before.
    I carry out NEN 3140 inspections for electric hand tools with a test cabinet in which the results are stored. At home I can process the tests by connecting the test cabinet to a program on the laptop via a port. When I want to transfer the test results, I now get a screen every time with the text unable to open comport. In the program itself I can select 8 com ports, but I have tried this but it does not help. Could it be that the program does not run on the new version or do you know a solution, unfortunately I don't know anything about it. Would love to hear from you, in any case, thank you very much for the energy you put into it.
    For now, have a nice Sunday, greetings Piet

    1. Hello, I suspect this is because the driver the hardware uses is either not installed or does not work with Windows 11. Please contact the vendor of the device you are testing with. You can then ask whether there is support for Windows 11. Another option is to restore Windows 10 and no longer update to Windows 11. After updating Windows 10 to 11, you can go back to Windows 10 within 10 days.
      Here you can read more: https://www.pc-tips.info/tips/windows-tips/windows-11-terugzetten-naar-windows-10/
      Success!

Do you have a computer question?

The email address will not be published. Required fields are marked with *