百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
N

netmuxd

> 编程语言
开源

仅用于网络的 usbmuxd 替代方案

196 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

仅用于网络的 usbmuxd 替代方案

netmuxd

A replacement/addition to usbmuxd which is a reimplementation of Apple's usbmuxd on MacOS

This project used to be network-only (hence the name), but USB support was later added.

Building

Run cargo build --release to generate binaries. They will be generated at target/release/netmuxd

USB support

netmuxd talks to iOS devices directly over USB via nusb. There is no dependency on a separate usbmuxd daemon: plug a device in and the daemon will discover it and start serving the usbmuxd protocol on its Unix socket / TCP port.

Windows

There are two backends for Windows because Windows is a garbage operating system with a garbage driver model.

Apple's mux

By default, netmuxd will connect to Apple's kernel driver like Apple Mobile Device Services does. This will evict iTunes etc. No installation is needed, it works a lot better than libusb.

Apple's own daemon (AppleMobileDeviceService.exe) holds the usbmux listener on TCP 127.0.0.1:27015. Pass --kill-amds to terminate it at startup so netmuxd owns the device and the listener. Add --restart-amds-on-exit to start the Apple Mobile Device Service back up (via the Service Control Manager) when netmuxd shuts down with Ctrl+C, restoring Apple's usual stack.

--kill-amds needs admin every run, because it terminates a SYSTEM-owned service process. To pay that cost only once, take over the service instead:

powershell
# from an admin PowerShell, once:
.\netmuxd.exe install-service

install-service repoints the Apple Mobile Device Service at netmuxd (ChangeServiceConfig) so the Service Control Manager launches netmuxd as a proper Windows service

The original ImagePath is saved under HKLM\SOFTWARE\netmuxd; restore Apple's binary with:

powershell
.\netmuxd.exe uninstall-service

Notes:

  • An Apple/iTunes update may rewrite the service back to Apple's binary. Just re-run install-service. Or maybe it doesn't, who knows. Untested.
  • Under the SCM there's no console, so service-mode logs go to %ProgramData%\netmuxd\netmuxd.log (RUST_LOG still applies; default info).

libwdi/libusb

Apple's stock USB driver claims the iOS interface, so libusb can't open it. netmuxd ships a one-shot installer that binds the libusb0 kernel driver to every Apple iOS device class. Run from an admin PowerShell (or admin cmd):

powershell
.\netmuxd.exe install

This must be done with the device plugged in: Windows ranks Apple's WHQL-signed INF above netmuxd's self-signed one, so the only way to win is to force-bind via UpdateDriverForPlugAndPlayDevices with the device present. If iTunes / Apple Mobile Device Support is installed, uninstall it first and reboot. To revert, run .\netmuxd.exe uninstall from the same elevated shell.

ARM64 note: Windows on ARM64 rejects libwdi's self-signed CA. Either turn on test signing (bcdedit /set testsigning on) for development, or ship the package with a Microsoft-attestation signature for production.

Usage

Options can be listed with --help

License

This code is licensed under the LGPL 2.1 license. You may use netmuxd's code how you will, but binaries must be distributed under and with that license.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言