r/MoonlightStreaming • • Aug 10 '26

USB/IP Beta (open source!)

Update: https://www.reddit.com/r/MoonlightStreaming/comments/1xr6zcc/usbip_updates_moving_forward/

USB/IP for Android → Windows — v1.0.6 Update

Quick info: Allows the use of USB devices over IP from an Android Host to a Windows Client.

🆕 What's New in v1.0.6

Auto-Connect on Startup

  • Reconnects to your last host automatically, matched by mDNS hostname or IP
  • Retries in the background if the host isn't up yet (6 attempts, 5 seconds apart)
  • Can be turned off with one checkbox

Device Restore

  • Devices that were attached when you closed the app are re-attached at the next launch
  • Favorited devices are still auto-attached as before

Smarter Host Tracking

  • If your phone's IP changes (e.g. after reconnecting to Wi-Fi), mDNS picks up the new address and the client follows it

Experimental: Steam Controller Support

  • Android's kernel claims the Steam Controller's first interface, which used to break enumeration on Windows
  • The client now runs a local relay that hides that interface from Windows (it shows up as an empty dummy interface) and answers its requests locally, so they never travel over the network
  • Steam's own traffic, including the command that turns off "Lizard Mode", passes through untouched
  • ⚠️ Not yet tested on real hardware. Feedback is very welcome!

📱 Android Devices Tested On

  • Samsung Galaxy S20+ (Android 13)
  • Samsung Tab A8 (Derpfest, Android 16)
  • Essential PH-1 (LineageOS, Android 16)
  • Samsung Galaxy Z Fold 7 (Android 16)
  • Google Pixel 10 Pro Fold (Android 16)

🎮 USB Devices Tested

  • USB Mass Storage
  • Logitech G29 Steering Wheel/Pedals
  • SteelSeries Arctis 7 Headset
  • Nintendo Switch 2 Controller
  • Xbox Elite Controller
  • Ethernet Adapter (integrated into USB hub)
  • SD Card Reader (integrated into USB hub)
  • URSA MINOR 32 Throttle Metal
  • URSA MINOR Airline Joystick

🔗 Links

💰 Pricing

$ TBA If you have Premium, all future updates and downloads are free.

A free version (unlimited use) is on Itch.io, and the source stays open on GitHub.

First post: https://www.reddit.com/r/MoonlightStreaming/comments/1vkq99a/usbip_beta_open_source/

*If you wish to build off of the open-source, please give credit where credit is due.*

Thank you to the Moonlight community for testing and feedback during development!

70 Upvotes

107 comments sorted by

View all comments

Show parent comment

1

u/Head_Complex2690 Aug 11 '26

Please share debug info :) Or, if you want to try again with the revised APK, it should allow you to view errors directly in the app. Uploading shortly. Thank you for testing!

2

u/Background_Ad2053 Aug 11 '26

Here is the part of the log with issue detected by AI "java.lang.IllegalArgumentException: com.mizukos.usbip: Targeting U+ (version 34 and above)

disallows creating or retrieving a PendingIntent with FLAG_MUTABLE, an implicit Intent within

and without FLAG_NO_CREATE and FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT for security reasons...

at com.mizukos.usbip.UsbServerService.requestPermissionForDevice(UsbServerService.kt:296)

at com.mizukos.usbip.UsbServerService.processNextPermissionRequest(UsbServerService.kt:292)

at com.mizukos.usbip.UsbServerService.handleIncomingDevice(UsbServerService.kt:283)". What AI thinks is wrong: "Android 14 (API level 34, "Targeting U+") added a hard security restriction — apps can no longer create a PendingIntent with FLAG_MUTABLE for an implicit intent (an intent with no explicit target component) unless they also pass FLAG_ALLOW_UNSAFE_IMPLICIT_INTENT. This app's UsbServerService.kt line 296 is calling PendingIntent.getBroadcast(...) this way — right when it tries to request USB permission for your Steam Controller — and it's crashing on the spot, every time, because the app was built targeting SDK 34+ but never updated that call to use FLAG_IMMUTABLE (or make the intent explicit).". I will open an issue report if you need full log.

2

u/Head_Complex2690 Aug 11 '26

Yep, that's fixed! Uploading new APK now.

1

u/Background_Ad2053 Aug 11 '26

Thank you for the quick fix! I can share the usb device now, however, the controller doesn't appear to be there after sharing with command " sudo usbip attach --remote=192.168.2.118 --busid=1-1". Possible related logs "[359088.787559] vhci_hcd: unlink->seqnum 59346093
[359088.787564] vhci_hcd: urb->status 0
[359088.787609] vhci_hcd: cannot find a urb of seqnum 59346085 max seqnum 59346094
[359088.787647] vhci_hcd: stop threads
[359088.787651] vhci_hcd: release socket
[359088.787656] vhci_hcd: disconnect device
[359088.787728] usb 9-1: USB disconnect, device number 17". Seems the shared device only lived a short time before the connection dropped. Tried it on my honor GT Pro tablet (android 16) as well, same result.

1

u/Head_Complex2690 Aug 11 '26

Uploading now.

1

u/Background_Ad2053 Aug 11 '26

Still cannot attach the controller to my bazzite PC. I will file an issue report on your repo, apparently whatever causes the bug is beyond my understanding..