Rubylight Download 7.0.3

USB forwarding #

Rubylight docs › Controllers · Clipboard, files and USB · DualSense haptics

A USB device plugged into the client, such as a flash drive, a USB gamepad or a dongle, can be attached to the host PC during a stream and used as if it were plugged into the PC. The client serves the device over USB/IP inside a TLS tunnel on the stream's HTTPS port, and usbip-win2 attaches it on the host. No USB/IP port is open to the network: the host relays the tunnel to the driver on 127.0.0.1. The protocol is specified in the native API and control messages.

Setup #

  1. On the host: install usbip-win2, either with the installer's optional Install USB audio and haptics support or from its own release. Turn on All settings → Sound & controls → USB devices → USB forwarding (usb_forwarding, off by default). USB devices at once (usb_max_devices, 1 to 16, default 4) limits how many devices this PC takes from all clients at the same time.
  2. For each client: open the device under Devices in the console and tick USB devices under its permissions. Taking the permission away disconnects a streaming device, which detaches its USB devices.
  3. On Nightjar for Windows or Linux: turn on Settings → Controls → USB → Forward USB devices. During a stream, USB devices on the Controller page of the Control Center lists the USB devices plugged in here (hubs left out), each with Attach or the reason it can't be forwarded.
  4. On Nightjar for Android: turn on Settings → Controls → USB → Forward USB devices. During a stream, USB devices is on the Controller page of the Control Center: picking a device asks Android for access and attaches it, and picking it again detaches it. Hubs and the controllers Nightjar's own USB drivers use are not listed.

Nightjar's USB devices page covers the client side.

The host forwards nothing while the setting is off, usbip-win2 is missing or the client lacks the permission; the client shows which of these applies.

What can be forwarded #

On the host #

The console's Devices page shows a USB devices panel once a device has the permission or something is attached: each client's devices with their ID (vid:pid), bus ID and state (waiting for the device, connecting, attached on a port, detaching, detach failed). Detach unplugs one; Detach again retries a failed detach.

An attachment ends when the client detaches it, the console detaches it, the stream ends, either side closes the tunnel or the client disconnects.

Troubleshooting #

View this page on GitHub