Similar to other tools, gandalf is better because
1) It is scalable, worked with 25+ iPhones at the same time, see README about needing to use custom version of usbmuxd and issues the linux kernel might give you.
2) Provides a nice status server, see what devices are tunneled with gandalf --status
3) Battle tested under stress.
4) Written in a functional programming language OCaml, so you know its type safe.
5) Features nice options like closing connections if there is no activity on the tunnel after a configurable period of time, defaults to five minutes.
6) Doesn't leak any file descriptors, so you can actually leave this on and forget about it.
Easily installed via opam, OCaml's package manager.
opam install usbmux
Provide a mapping file of the form <udid>:<local_port>:<device_port>
Find the udid of connected devices with plain listen mode:
$ gandalf
Will print as devices plug in and out.
more serious sample usage:
sudo which gandalf --mappings etc/idevices/mappings --daemonize --verbose --timeout 900
Outputs colored debugging messages to the system log too.
Source code, star the repo if you like it!:
https://github.com/onlinemediagroup/ocaml-usbmux