Getting a List of Serial Ports in the System and Finding the COM Port of an Application
Working with COM ports is a common task for professionals involved in debugging and maintaining industrial equipment, system administrators, and DIY enthusiasts. These ports are used for communication with various devices, such as microcontrollers, sensors, and other systems that operate through a serial interface. Sometimes, during operation, it is necessary to determine which COM ports are available on the computer and to view the data transmitted through them.
Knowing the COM ports on a computer is important when working with a new or unknown device, as the COM port number (e.g., COM10) is essential for communication with that device.
How to view all COM ports on Windows
The task may not be as simple and obvious. The easiest way is to open Devices Manager, go to the Ports group, and view the list there. However, this does not always work:
- Your device may be in an unexpected place in Devices Manager (e.g., Modems).
- The port number may not be displayed next to the device name, requiring you to dig into the device settings (e.g., multi-port adapters or virtual devices).
- The device may create multiple ports for one physical device (e.g., Bluetooth devices).
To solve this problem, you can use Advanced Serial Port Monitor. The program can identify ports in several ways to obtain the most complete list with the port number and its description:
- Download Serial Port Monitor (the first link) and install it on your computer. During installation, you can leave all options at their default settings.
- Run ASPM, and the program will determine all ports upon startup (see image).

How to find the COM port used by an application
On Windows, each COM port can be used by only one program, since it is opened in the exclusive mode. If the port number is unknown, it can be found by simple trial and error, sequentially trying to select and open the port using a program like Advanced Serial Port Monitor. When opening the port, you should use the "Manual" mode (Main menu → Mode) and relatively standard communication parameters 9600 8N1.
- Run Serial Port Monitor.
- Select the desired port from the list.
- Click the "Open" button.
- If the text on the button changes to "Close" and no error message is displayed, the port has been successfully opened and is not in use by another program.
- If the port could not be opened, it may be that another program is using it; ASPM will show the name of the process that is using that port. This is often accompanied by an error message: Port busy, Access denied.
- If it is possible, stop the program using the port and try to open it again to confirm that it was indeed occupying the port.
How to detect the communication parameters of an application
The Advanced Serial Port Monitor program allows you not only to view data transmitted through the COM port, but also to determine communication parameters. This can be useful if you need to find out the settings of an application interacting with an external device via a serial interface. Communication parameters include: baud rate, number of data bits or stop bits, parity check, and others. To determine communication parameters, you need to do the following:
- Close the application that interacts with the external device.
- Run Serial Port Monitor.
- Go to program settings "Options → Program settings → Data view → System events", and ensure that checkboxes are marked for all system events in the list. Click "OK" to save the changed settings.
- Select the desired port from the list.
- Select "Mode → Spy".
- Click the "Open" button.
- Run your application and initiate data exchange within it for a few seconds.
- The main window of the program will display data exchange and system events highlighted in red. It is more convenient to use the "ASCII" data window for viewing events.
- Close the port to stop data flow.
- Scroll to the top of the data window.
- Look for lines with "Baud rate" and "Data bits," which contain the communication parameters used by another application when opening the port.

Download a free trial version
Helps diagnose problems
See also
RS232 Analyzer from Advanced Serial Port Monitor
RS232 Monitor is a unique monitoring tool for communications via RS-232
Capture and analyze COM port traffic with our Windows RS232 serial port sniffer
Spying on a serial port or RS232 port using our Serial Port Monitor software
RS232 terminal
UART monitoring using our Serial Port Monitor
COM port scanner
5 common errors with COM port operations in Windows
How to find application COM port and list all COM ports in Windows