- Open SetupG from the com0com folder in your Start menu, with administrator rights. You will see the existing pairs listed — at minimum the default CNCA0 ↔ CNCB0 pair from installation.
- Click Add Pair. A new pair appears with the next free default names (for example CNCA1 and CNCB1).
- Before you finish, consider renaming the new ports right away (next section). Default names work, but many applications cannot see them.
- Apply the changes. Close any application that currently has one of the affected ports open first — a port in use cannot be reconfigured cleanly.
Method 2: Create a pair with setupc
Open the Setup Command Prompt (setupc.exe) from the com0com installation folder, as administrator. The command to add a pair with default names is:
command> install - -
Each - tells setupc to assign the next default name for that end of the pair, which is why the result is a CNCAn/CNCBn pair. Run list afterwards to see every pair and port the driver currently has, and to confirm the new pair was added with the names you expected.
Rename the pair while you are at it
Here is the step beginners skip and then lose an hour to: a large share of serial applications only enumerate ports with standard COM names. They will never offer CNCA0 in their port dropdown, no matter how correctly the driver is installed. The fix takes ten seconds. In SetupG, select the port and change its name using the PortName=COM# form — for example, turn CNCA0 into COM10 and CNCB0 into COM11. Assigning a name in that form also places the port in the Windows Ports class, so it appears in Device Manager alongside physical COM ports and becomes visible to applications that scan that class.
The same change from setupc looks like this:
command> change CNCA0 PortName=COM10
command> change CNCB0 PortName=COM11
Pick numbers that are not already in use by physical hardware, Bluetooth serial links, or USB adapters, and avoid COM1 and COM2, which legacy software often assumes are motherboard ports. The full renaming guide — including what to do when the number you want seems taken — is here.
Prove it works: the two-window loopback test
Before connecting any real software, verify the pair with the simplest test there is. You need any terminal program — PuTTY, Tera Term, or the terminal built into your development tools all work.
- Open the terminal and connect it to the first end of the pair (say COM10), using any settings — 9600 baud, 8 data bits, no parity, 1 stop bit is a fine starting point.
- Open a second terminal window and connect it to the other end (COM11), with the same settings.
- Type in the first window. Every character should appear in the second window — and nothing should appear in the window you typed in (unless your terminal has local echo switched on).
- Type back from the second window to the first. If both directions work, your pair is fully functional.
If nothing arrives, check the basics before suspecting the driver: both windows must be connected to opposite ends of the same pair, no other program may hold either port open, and if you are using the CNCA/CNCB names, make sure your terminal can actually open them (the rename above solves this in most cases). More answers are in the FAQ.
About baud rate, data bits and parity on a virtual pair
New users are often surprised that a virtual pair seems to ignore its speed setting. That is by design. With a physical cable, the baud rate is a real electrical signalling speed. With com0com, data moves through memory, so by default it is transferred as fast as the applications can handle, regardless of the baud rate the application selected — baud rate emulation (EmuBR) is off by default. The data bits, parity and stop-bit settings your application chooses are accepted, but there is no UART hardware enforcing them.
Most of the time this instant, pass-through behaviour is exactly what you want — it is why virtual pairs are ideal for application-to-application links and for testing serial software. If you are developing software that must behave correctly at a real 9600 baud — for example, code that times out too aggressively when data arrives instantly — enable baud rate emulation for the sending port (in SetupG, or with change CNCA0 EmuBR=yes in setupc) and the driver will pace the data realistically. The SetupG guide covers EmuBR and its sibling options, overrun and noise emulation, in detail.
One pair or many? Planning a small test bench
A single pair covers the classic case — one simulator talking to one application. Real test benches grow quickly, though: the application under test on one pair, a monitoring or logging setup watching a second scenario on another, a spare pair for the next experiment. Since pairs cost nothing and the driver supports an effectively unlimited number of them, create pairs per purpose rather than constantly reconfiguring one shared pair. Give each pair’s ends distinct COM names in a pattern (COM10/COM11 for the first setup, COM12/COM13 for the second) and jot down which pair serves which purpose. When a test misbehaves, that tiny bit of bookkeeping tells you instantly whether you are even looking at the right connection — a surprisingly common source of “com0com drops my data” reports that turn out to be two programs attached to different pairs.
That is all a pair is: create it, give it real COM names, test it with two windows. From here the interesting part is what you connect to the ends — two of your own programs, a simulator and the software under test, or one end of a hub4com sharing setup. When you are ready to go further, the Guides archive collects every walkthrough on this site, and the download page has the packages, including hub4com.
A virtual COM port pair is the whole point of com0com: two virtual serial ports connected back-to-back in software, so anything one application sends into the first port comes out of the second, and vice versa — the software equivalent of a null-modem cable between two PCs. This walkthrough creates your first pair, renames it to something your applications can actually use, and proves it works with a two-window loopback test.
This guide assumes com0com 3.0.0.0 is already installed and the driver loaded. If it is not, start with the Windows 11 installation guide (or the Windows 10 guide) and come back once Device Manager shows the driver without a Code 52 warning.
What you get by default: CNCA0 and CNCB0
The installer already creates one pair for you, named CNCA0 and CNCB0. Those names are the driver’s internal naming scheme: CNCA/CNCB plus a number for each additional pair (CNCA1/CNCB1, and so on). The two ends are permanently cross-connected — CNCA0 talks only to CNCB0, never to a physical port or to another pair. And you are not limited to one pair: the official FAQ gives an internal limit of 1,000,000 pairs, which in practice means the number of pairs is unlimited.
You have two ways to manage pairs: the graphical SetupG utility and the setupc.exe command prompt. Both change the same settings; use whichever you prefer.
Method 1: Create a pair in SetupG
- Open SetupG from the com0com folder in your Start menu, with administrator rights. You will see the existing pairs listed — at minimum the default CNCA0 ↔ CNCB0 pair from installation.
- Click Add Pair. A new pair appears with the next free default names (for example CNCA1 and CNCB1).
- Before you finish, consider renaming the new ports right away (next section). Default names work, but many applications cannot see them.
- Apply the changes. Close any application that currently has one of the affected ports open first — a port in use cannot be reconfigured cleanly.
Method 2: Create a pair with setupc
Open the Setup Command Prompt (setupc.exe) from the com0com installation folder, as administrator. The command to add a pair with default names is:
command> install - -
Each - tells setupc to assign the next default name for that end of the pair, which is why the result is a CNCAn/CNCBn pair. Run list afterwards to see every pair and port the driver currently has, and to confirm the new pair was added with the names you expected.
Rename the pair while you are at it
Here is the step beginners skip and then lose an hour to: a large share of serial applications only enumerate ports with standard COM names. They will never offer CNCA0 in their port dropdown, no matter how correctly the driver is installed. The fix takes ten seconds. In SetupG, select the port and change its name using the PortName=COM# form — for example, turn CNCA0 into COM10 and CNCB0 into COM11. Assigning a name in that form also places the port in the Windows Ports class, so it appears in Device Manager alongside physical COM ports and becomes visible to applications that scan that class.
The same change from setupc looks like this:
command> change CNCA0 PortName=COM10
command> change CNCB0 PortName=COM11
Pick numbers that are not already in use by physical hardware, Bluetooth serial links, or USB adapters, and avoid COM1 and COM2, which legacy software often assumes are motherboard ports. The full renaming guide — including what to do when the number you want seems taken — is here.
Prove it works: the two-window loopback test
Before connecting any real software, verify the pair with the simplest test there is. You need any terminal program — PuTTY, Tera Term, or the terminal built into your development tools all work.
- Open the terminal and connect it to the first end of the pair (say COM10), using any settings — 9600 baud, 8 data bits, no parity, 1 stop bit is a fine starting point.
- Open a second terminal window and connect it to the other end (COM11), with the same settings.
- Type in the first window. Every character should appear in the second window — and nothing should appear in the window you typed in (unless your terminal has local echo switched on).
- Type back from the second window to the first. If both directions work, your pair is fully functional.
If nothing arrives, check the basics before suspecting the driver: both windows must be connected to opposite ends of the same pair, no other program may hold either port open, and if you are using the CNCA/CNCB names, make sure your terminal can actually open them (the rename above solves this in most cases). More answers are in the FAQ.
About baud rate, data bits and parity on a virtual pair
New users are often surprised that a virtual pair seems to ignore its speed setting. That is by design. With a physical cable, the baud rate is a real electrical signalling speed. With com0com, data moves through memory, so by default it is transferred as fast as the applications can handle, regardless of the baud rate the application selected — baud rate emulation (EmuBR) is off by default. The data bits, parity and stop-bit settings your application chooses are accepted, but there is no UART hardware enforcing them.
Most of the time this instant, pass-through behaviour is exactly what you want — it is why virtual pairs are ideal for application-to-application links and for testing serial software. If you are developing software that must behave correctly at a real 9600 baud — for example, code that times out too aggressively when data arrives instantly — enable baud rate emulation for the sending port (in SetupG, or with change CNCA0 EmuBR=yes in setupc) and the driver will pace the data realistically. The SetupG guide covers EmuBR and its sibling options, overrun and noise emulation, in detail.
One pair or many? Planning a small test bench
A single pair covers the classic case — one simulator talking to one application. Real test benches grow quickly, though: the application under test on one pair, a monitoring or logging setup watching a second scenario on another, a spare pair for the next experiment. Since pairs cost nothing and the driver supports an effectively unlimited number of them, create pairs per purpose rather than constantly reconfiguring one shared pair. Give each pair’s ends distinct COM names in a pattern (COM10/COM11 for the first setup, COM12/COM13 for the second) and jot down which pair serves which purpose. When a test misbehaves, that tiny bit of bookkeeping tells you instantly whether you are even looking at the right connection — a surprisingly common source of “com0com drops my data” reports that turn out to be two programs attached to different pairs.
That is all a pair is: create it, give it real COM names, test it with two windows. From here the interesting part is what you connect to the ends — two of your own programs, a simulator and the software under test, or one end of a hub4com sharing setup. When you are ready to go further, the Guides archive collects every walkthrough on this site, and the download page has the packages, including hub4com.
