Which COM Port Is My USB Serial Device Using?

Adapters that turn USB into a serial port each get a COM number, and the quickest way to tell which number is yours is to watch Device Manager while you plug the device in. Open Device Manager, expand Ports (COM & LPT), unplug the cable, and note which entry disappears; plug it back in and the entry that returns, with its COM number in brackets, is your device.

The unplug test, step by step

This works in current versions of Windows 11 and needs no extra software.

  1. Open Device Manager: select Start, type Device Manager and open it. Microsoft also lists right-clicking This PC in File Explorer and choosing Manage. More routes are in opening Device Manager in Windows 11, and the older layout is covered in opening Device Manager on an older PC.
  2. Expand Ports (COM & LPT). Each serial device is listed with its number, for example “USB Serial Device (COM3)”.
  3. Unplug your adapter or device. Device Manager refreshes and the entry that belonged to it disappears.
  4. Plug it back in, ideally into the same USB port. Wait a few seconds for the entry to return.
  5. Read the COM number in brackets. That’s the one to choose in your terminal program, flashing tool or instrument software.
Device Manager with Ports (COM and LPT) expanded showing a USB serial device on COM3
Ports (COM & LPT) lists each serial device and its number.

If the list doesn’t change when you unplug, select Action > Scan for hardware changes, or close and reopen Device Manager.

When several entries look the same

Labs and server rooms often have three or four identical adapters plugged in at once, so the names don’t help. These checks narrow it down without unplugging everything:

Show devices by connection

In Device Manager, open the View menu and choose Devices by connection. Windows then shows each device under the controller and hub it’s plugged into. Expand the USB branches until you find the serial port entries; adapters on the same hub sit together, which helps when one adapter is in a front port and another is on a docking station.

Check the device details

Right-click the port entry and select Properties. Microsoft’s Device Manager documentation lists the General, Driver, Details and Events tabs in that dialog. On the Details tab, pick Hardware Ids from the property list to see the vendor and product codes (they start with USB\VID_ and PID_). Two identical adapters show the same codes, but an adapter and, say, a USB microcontroller board usually don’t, which settles which is which.

Read the driver provider

The Driver tab shows who made the driver. If one entry uses the adapter maker’s driver and another uses a generic Microsoft driver, that’s another quick tell. When an adapter doesn’t appear under Ports at all, it usually needs the maker’s driver; install it from the adapter maker’s support page or with the steps in installing drivers in Windows 11.

Confirm the number from the command line

If you’re scripting a test rig or working over Remote Desktop, a command can confirm what Device Manager shows. Microsoft’s mode command reference says that mode without parameters displays the controllable attributes of the console and the available COM devices. To check one port, run mode com3 /status, changing the number to yours.

In PowerShell, Microsoft’s Get-PnpDevice reference covers listing devices by class. Get-PnpDevice -Class Ports lists port devices with their friendly names, which include the COM number, and the -PresentOnly switch hides devices that aren’t plugged in.

Keep the same number every time

Windows can assign a new COM number when the same adapter is plugged into a different USB port, because it may treat the new location as a new device. Two habits prevent most changes:

  • Use the same physical port. Label it, or plug the adapter into a small hub that stays connected to one port.
  • Keep the adapter’s driver up to date from one source. Switching between a maker’s driver and a generic one can register the adapter as a new device. Updating drivers in Windows 11 covers the safe ways to do that.

If your software only offers COM1 to COM4, you can assign a lower number. In the port’s Properties, open Port Settings > Advanced and pick a number from the COM Port Number list. Choose one Windows doesn’t mark as in use, select OK, and unplug and reconnect the adapter.

Bluetooth serial ports

Some Bluetooth devices, such as older GPS receivers and data loggers, also use COM ports. They appear under Ports (COM & LPT) as Bluetooth-linked entries once the device is paired, and pairing can create more than one entry for a single device. The unplug test doesn’t work here, so turn the device’s Bluetooth off and on instead and watch which entry changes. If Bluetooth itself is off on the PC, turning on Bluetooth in Windows covers that first.

Serial COM ports vs network ports

A COM port number has nothing to do with a network port such as 80 or 443. If a program asks for a “port” and you’re connecting over the network, you need a different check: checking whether a network port is open on Windows explains it.

COM port number questions

My device shows under Other devices instead of Ports. What does that mean?

Windows found the hardware but has no driver for it, so it can’t create a COM port yet. Install the adapter maker’s driver, then check Ports (COM & LPT) again.

The number is right but the program still can’t open the port. Why?

Only one program can use a COM port at a time. Close other terminal windows, serial tools or vendor utilities that might be holding it, then try again.

Does the cable length or a USB hub change the COM number?

A hub can, because Windows may see each hub port as a different location. A longer cable on the same port doesn’t change where the adapter is connected.