# WSL cannot see the USB serial port: attach it with usbipd

> Fix a USB board that does not appear in WSL: install usbipd on Windows, bind and attach the device, and check /dev/ttyUSB0 or /dev/ttyACM0.

Canonical: https://roboticsengineering.in/fix/wsl-usb-serial-port-not-visible-usbipd/ | Published: 2026-11-03 | Updated: 2026-11-04

**WSL does not see USB devices by itself. Use the usbipd tool on Windows to attach the board to WSL.**

## What the message means

WSL 2 runs in a light virtual machine. USB devices belong to Windows until you pass them through.

## Fix it in this order

1. Install usbipd-win on Windows, and open a Windows terminal as administrator.
2. List devices with usbipd list, and note the bus ID of your board.
3. Run `usbipd bind --busid ID` and then `usbipd attach --wsl --busid ID`, with your own bus ID.
4. In WSL check ls /dev/tty\* for the new port.
5. Add your user to the dialout group if permission is denied.
6. Detach the device when you want to use it from Windows again.

## Why it happens

WSL 2 runs Linux inside a lightweight virtual machine. USB devices are owned by Windows, and the virtual machine has no direct view of them, so a board you plug in does not appear as a serial port in Linux.

The usbipd tool shares a device from Windows to the virtual machine over a network-style link. After you bind and attach it, Windows no longer uses the board, so close any Windows program that holds the port, and expect to attach it again after a reset or replug.

## If you see this, do this

| You see | Do this |
| --- | --- |
| Board not in WSL | Attach with usbipd. |
| Port found, permission denied | Dialout group. |

## Related

[serial permission denied](https://roboticsengineering.in/fix/python-serial-permission-denied-dev-ttyusb0/), [board not detected](https://roboticsengineering.in/fix/arduino-nano-clone-not-detected-ch340-driver/).

Last reviewed: November 2026. These are the usual causes and the order that finds them fastest. Test on your own board; clones and cables differ.

## Why this happens

WSL 2 runs Linux inside a lightweight virtual machine that has no direct access to Windows USB ports. A serial adapter stays with Windows until you pass it through. The usual tool is usbipd-win, which shares the device over a virtual network and lets WSL attach to it. While the device is attached to WSL, Windows programs such as the Arduino IDE can no longer use it.

Two more points often catch people. The attachment is lost when the device is unplugged, when WSL restarts or when Windows reboots, so attach is repeated. Also the Linux kernel inside WSL needs the driver for your USB chip; if it is missing, the device is visible with lsusb but no /dev/ttyUSB file appears.

## How to confirm the cause

- Run `wsl -l -v` in Windows and check the version column says 2.
- Run `usbipd list` in Windows and find your device and its bus id. The state column shows Not shared, Shared or Attached.
- Inside WSL run `lsusb`. Seeing the device means the attach worked.
- Run `ls /dev/ttyUSB* /dev/ttyACM*`. A device in lsusb with no file points to a missing kernel driver.
- Close any Windows program that has the port open.

## Worked example

The version 4 command forms, with an example bus id. The first two lines run in an administrator prompt on Windows.

```
usbipd list
usbipd bind --busid 4-4              # once per device
usbipd attach --wsl --busid 4-4      # each time after replug

# inside WSL
lsusb
ls /dev/ttyUSB*
```

## Common mistakes

- Using the older ‘usbipd wsl attach’ syntax with a newer version.
- Forgetting the bind step, which needs administrator rights once.
- Trying it on WSL 1.
- Leaving the Arduino IDE open on the same port.
- Using a charge-only cable.

## If this did not fix it

- Permission denied on the port: add the user to the dialout group.
- The kernel lacks the driver for the chip; a newer WSL kernel or a custom kernel may be needed.
- A different bus id after moving the cable to another socket.
- The adapter resets when attached, so the first attach shows a new bus id.
