A COM port is a computer serial port that transmits data one bit at a time; in its traditional form, it uses the RS-232 standard. Today, it is mainly used to configure and service servers, switches, routers, UPS systems and industrial equipment. Connecting an RS-232 device to a modern laptop usually requires a USB-to-RS-232 adapter, but the cable, pinout and communication settings must match the device documentation.
A console lets you view boot messages and correct settings when normal network access has not yet been configured or has been lost. However, identical connector shapes do not guarantee compatibility: the electrical interfaces and pin assignments may differ.
What is a COM port in simple terms?
It is a service channel between a computer and a device that carries commands and responses without IP addresses or a local network.
In asynchronous communication, a character is framed by a start bit and one or more stop bits, sometimes with an additional parity bit. No separate clock line is required, but both ends must use matching settings.
COM ports are also used by cash registers, scales, measuring instruments, machine tools and industrial controllers: their speed is sufficient for commands and small amounts of data.
COM, RS-232 and DB-9: what is the difference?
These terms refer to different things:
- COM1, COM3, COM7 are serial port names in Windows. The number is assigned to a port; it does not describe its connector or speed.
- RS-232, also known as TIA/EIA-232, is an electrical interface standard covering signal levels, signal functions and connection requirements.
- DE-9 is a nine-pin D-sub connector. Catalogues and everyday usage often call it DB-9, although DE-9 is the technically correct designation.
A USB device can appear as COM3 without an external RS-232 connector: the application sees a serial port, while the connection to the computer runs over USB.
RS-422 and RS-485 are also serial interfaces, but they use differential signalling and have different electrical characteristics and distance capabilities; they cannot be connected directly to RS-232.
What a COM port looks like and how its pinout works
A classic COM connector has a trapezoidal metal shell and nine contacts in two rows of five and four. The computer usually has a male connector with pins, while the cable has a matching female connector.
Older equipment also uses 25-pin connectors for RS-232, while network equipment uses RJ-45. Identify the interface from the markings and the device manual.
The table shows a common computer RS-232 pinout for DTE, or Data Terminal Equipment, as documented by National Instruments. A particular instrument may use a different arrangement.
| Pin | Signal | Direction relative to the computer | Purpose |
|---|---|---|---|
| 1 | DCD | Input | Modem carrier detection |
| 2 | RxD | Input | Receive data |
| 3 | TxD | Output | Transmit data |
| 4 | DTR | Output | Computer ready for communication |
| 5 | GND | — | Signal ground |
| 6 | DSR | Input | Connected equipment ready |
| 7 | RTS | Output | Request to send; flow-control signal |
| 8 | CTS | Input | Clear to send; flow-control signal |
| 9 | RI | Input | Modem ring indicator |
Viewed from the mating face of the male connector, with the wider row at the top, the top row is numbered 1 to 5 from left to right and the bottom row 6 to 9. The solder-side view and the mating face of a female connector are mirror images of the male connector's mating face.
Simple communication often requires only TxD, RxD and GND: one device's transmitter connects to the other device's receiver. The remaining contacts carry status signals and support hardware flow control.
Two computers or other DTE devices are connected with a null-modem cable. In a three-wire version, pins 2 and 3 are crossed and pin 5 connects to pin 5. Hardware flow control requires a cable with additional connections specified in the device documentation.
How COM differs from VGA and LPT
Similar metal shells can be misleading, but these ports serve different purposes:
- COM on DE-9: nine contacts in two rows, usually male pins on the computer; carries serial data.
- VGA on DE-15: fifteen contacts in three rows, usually female sockets on the computer; carries an analogue video signal.
- LPT on DB-25: twenty-five contacts in two rows, usually female sockets on the computer; a traditional parallel port for printers and other peripherals.
DB-25 was also used for RS-232: the number of contacts does not identify the interface. A passive adapter that changes the connector shape does not convert COM into VGA, LPT or USB.
Choosing the Right Equipment
Our specialists will contact you and answer all your questions
COM port speed and communication settings
Typical rates are 9,600, 19,200, 38,400, 57,600 and 115,200 baud. Some controllers and adapters support higher rates: the limit depends on both devices, the driver and the communication line.
Baud measures signal symbols per second; bit/s measures bits per second. With binary RS-232 signalling, each symbol represents one bit, so the values are equal. The useful data rate is lower because of framing overhead.
What 9600 8N1 means
You may find this notation in a switch, UPS or controller manual. It specifies four settings:
- 9600 — the baud rate;
- 8 — eight data bits per character;
- N — no parity;
- 1 — one stop bit.
With 8N1, one byte takes ten bit intervals: one start bit, eight data bits and one stop bit. For a continuous transfer, this gives:
115,200 ÷ 10 = 11,520 bytes/s, or approximately 11.5 kB/s using decimal units.
This is the rate in one direction, excluding pauses and protocol overhead. At 9,600 baud, the result is 960 bytes/s. A large firmware image takes a long time to transfer, but the speed is usually sufficient for a command line and boot log.
Parity and flow control
Instead of N, the setting may specify E for even parity or O for odd parity. It must match at both ends. Parity detects some errors but does not correct them or arrange retransmission.
Flow control determines how the receiver asks the transmitter to pause:
- RTS/CTS uses separate signal lines;
- XON/XOFF sends control characters over the data line;
- no flow control means communication proceeds without this coordination.
Enabling RTS/CTS with a three-wire cable may stop transmission while it waits for permission to send. The 8N1 notation says nothing about flow control: it is configured separately.
How much cable length can you expect?
A common guideline for RS-232 is about 15 metres, but this is not a guarantee at every speed. Line capacitance, cable characteristics, the transmitter, the receiver and interference all matter.
Within a rack, use a short, suitable cable. For remote devices, use an interface converter or a network connection. Higher speeds leave less margin for line quality; assess the specified distance alongside its measurement conditions.
COM ports on a motherboard
COM or COM1 on a motherboard usually labels an internal header for bringing the port outside the case: often a ten-position header with one pin missing. A ribbon cable connects it to a bracket with an external DE-9 connector.
The bracket exposes an existing port: it requires an enabled controller on the motherboard.
Choose the bracket according to the motherboard manual: similar headers and ribbon cables can have different wiring. Matching dimensions alone are not enough to establish compatibility. Some industrial systems also allow you to select the serial interface mode.
Server and industrial motherboards retain COM ports for servicing and equipment compatibility. When ordering, check whether the external connector, bracket and cable are included: an internal header does not guarantee that they are supplied.
If there is no COM port: USB adapters and expansion cards
USB-to-RS-232 for a laptop
Compact USB-to-RS-232 adapter. Photo: Markus Bärlocher / Wikimedia Commons, CC0 1.0.
For an occasional connection, a USB-to-RS-232 adapter with a USB controller and electrical level conversion is convenient. After the driver is installed, Windows exposes a COM port that applications use much like a built-in port.
Common controller vendors include FTDI, Silicon Labs, Prolific and WCH. The controller name helps you find the driver, but choose the finished adapter by its specifications:
- support for your operating system and the required speed;
- the required signal lines, including RTS/CTS and DTR/DSR if they are used;
- the connector type, its pinout and a suitable cable;
- galvanic isolation, if the operating conditions require it.
USB-to-TTL and USB-to-RS-232 use incompatible electrical levels. An adapter with 3.3 V or 5 V logic levels must not be connected directly to RS-232, even though both types can create a COM port in Windows.
The operating system detects the USB adapter, not the RS-232 instrument connected to it. The appearance of COM5 confirms that the USB side works, but does not establish communication with the instrument: you must already know its settings and protocol.
PCIe cards and Ethernet converters
For several devices, you can install a PCIe card with two, four or more ports. Check for a free slot, the bracket height, operating system support and compatibility between breakout cables and the case.
An RS-232-to-Ethernet converter provides network access through a virtual COM port or an application connection. Check support for the required operating mode, control signals and connection recovery. A passive RJ-45-to-DE-9 adapter cannot do this.
How to find and configure a COM port
COM1, COM3 and the port used by a USB device
In Windows 10 and Windows 11, open Device Manager → Ports (COM & LPT) from the Start menu or by running devmgmt.msc. The number appears in the device name, for example, “USB Serial Port (COM5)”.
To identify the port used by a particular adapter:
- Open the port list before connecting the adapter.
- Connect it and wait for the driver installation to finish.
- Find the new entry and note its COM number.
- Select that number in your terminal application.
Unplugging an active adapter ends the session. Moving it to another USB socket sometimes changes the number; you will need to update it in the application.
Many drivers let you change the number through Properties → Port Settings → Advanced → COM Port Number. Select an unused number and reopen the connection. The available tabs depend on the driver.
If there is no Ports section, look for the adapter in other categories and check its status. According to Microsoft documentation, some USB devices use the built-in Usbser.sys driver, while others require a manufacturer driver. There is no universal driver for every adapter.
How to enable a COM port in BIOS and Windows
A built-in port may be disabled in BIOS/UEFI. Look for Serial Port, COM Port or the Super I/O Configuration section, following the motherboard manual. A setting cannot create a controller that the board does not have.
Save the settings and check the port in Windows. If it is disabled in the operating system, use Enable device in Device Manager. If there is a driver error, check its code in Properties.
Set the communication parameters in the application that opens the port: it may override the values in Device Manager with its own settings.
Where to find a serial port in Linux
Linux uses device file names instead of COM1 and COM3:
- /dev/ttyS0, /dev/ttyS1 — typical names for built-in serial ports;
- /dev/ttyUSB0 — a common name for a USB adapter;
- /dev/ttyACM0 — a possible name for a USB CDC ACM device.
Run sudo dmesg -w and connect the adapter. The device name will appear in the driver messages, as described in the Linux kernel documentation.
If access is denied, check the device file permissions and its group, often dialout. The presence of /dev/ttyS0 does not by itself confirm that an instrument is connected to a working port.
Use PuTTY, Tera Term or minicom to connect, specifying the device port and communication settings.
Why the terminal displays nothing
The device may be waiting for Enter or may only output messages during boot. An empty window does not necessarily mean that the port is faulty.
The type of problem helps narrow the search:
- Unreadable characters often indicate a baud rate or character format mismatch.
- No transmission despite correct settings may indicate an unsuitable cable, pinout or flow-control mode.
- The port will not open if another application is using it; on Linux, insufficient permissions are another possible cause.
- Typed characters are not visible if the device does not echo them; this alone does not prove that transmission has failed.
Start with the settings in the device manual, the correct port and a compatible cable.
COM ports in the server room
Console ports on switches and routers
On managed switches and routers, the console port supports initial configuration and access recovery. It lets you configure management settings, view boot messages and correct errors that prevent the equipment from responding over the network.
For example, a device is powered on, but its address becomes unreachable after a configuration change. A direct console connection lets you correct the configuration without using the affected network interface. Access still requires the configured password.
There are several connection options:
- RJ-45 carrying RS-232 signals. A compatible cable is required; many Cisco devices use rollover console wiring with a DE-9 connection at the other end.
- USB console, including USB-C. Connect it with a USB data cable; a separate USB-to-RS-232 adapter is usually unnecessary.
- DE-9. Use a serial cable with the pinout specified by the manufacturer.
An RJ-45 console port is not Ethernet: do not connect it to a regular network port. A rollover cable is also not a substitute for an Ethernet cable and is not automatically compatible with every console.
The Cisco C9350 manual specifies 9600 8N1 with no flow control. Other equipment may use 115,200 baud, a different pinout or settings changed by an administrator. Check the manual and the current configuration.
Choosing the Right Equipment
Our specialists will contact you and answer all your questions
Server serial ports and Serial over LAN
A server serial port provides a text console without a monitor or keyboard: self-test messages, firmware menus, the bootloader and an operating system console, depending on the configuration.
These stages are configured separately. BIOS/UEFI console redirection does not guarantee a login prompt after Linux starts: the bootloader, kernel output and serial login service also need to be configured.
Serial over LAN, or SOL, carries the serial console through the BMC management controller: iDRAC on Dell servers and iLO on HPE servers. IPMI refers to management interfaces, not a separate controller. For more detail, see “iDRAC vs. iLO vs. IPMI: Remote Management”.
Dell's iDRAC documentation describes configuring the console in BIOS and enabling SOL in the controller. HPE also provides an iLO virtual serial port. Features and access permissions depend on the server and controller version.
SOL helps when the operating system's main network is unavailable, provided that the BMC and management network are working. If the connection to the controller fails, the remote console is lost as well. Restrict access to it as you would to other administration tools.
An external DE-9 connector is not required for a virtual console. When choosing a server such as the HPE ProLiant DL380 Gen10 from Servermall, check physical serial port availability and remote text console capabilities separately.
UPS systems, time servers and console servers
UPS systems. Management software uses the serial port to read UPS status and battery-operation information. During an extended power outage, it can shut down the server gracefully if this is supported and configured. Power planning is covered in “Rack-mounted UPS and PDU: Power Calculation”.
Schneider Electric warns that an unsuitable serial cable can switch off the output of an APC Smart-UPS. Matching connectors do not make a straight-through or null-modem cable compatible with a UPS.
Time servers. GPS receivers can send date and time over RS-232 and provide a separate PPS signal, or one pulse per second, to mark the second boundary. PPS reception and accuracy depend on the receiver outputs, port inputs, adapter and synchronisation software.
Console servers. These combine several serial ports with network access, letting an administrator select the required console remotely. Emergency access requires a reachable management network. If the console server depends on the same failed link, it cannot restore access through that link.
Frequently asked questions
Are a COM port and RS-232 the same thing?
No. COM is a port name in Windows; RS-232 is an electrical standard. A virtual COM port can exist without an external RS-232 interface. DE-9 identifies the connector.
Can I connect a COM device to a laptop?
Yes. RS-232 requires a USB-to-RS-232 adapter and a compatible cable; a USB console usually requires a USB data cable. USB-to-TTL is not a substitute for USB-to-RS-232.
How do I find which COM port a USB device uses?
Find the adapter number under Ports (COM & LPT) in Device Manager. If necessary, compare the list before and after connecting it. Select that number in your communication application.
How fast is a COM port?
Often 9,600–115,200 baud. At 115,200 baud with 8N1 framing, the maximum is 11,520 bytes/s in one direction, excluding pauses and protocol overhead.
Why does a server need a COM port if it has a network?
To view boot output and correct settings when the operating system's network services are unavailable. A direct connection works without an IP network, while SOL requires a working BMC and management network.
When you actually need a COM port
Choose the connection to suit the task and the equipment interface: a USB console, physical RS-232 or a remote BMC console. Check communication settings and cable compatibility in advance so that service access is ready when you need it.
Choosing the Right Equipment
Our specialists will contact you and answer all your questions