libimobiledevice / libusbmuxd

A client library to multiplex connections from and to iOS devices
https://libimobiledevice.org
GNU Lesser General Public License v2.1
574 stars 270 forks source link

Is there a way to forward just one device connection from usbmuxd #105

Open harrain opened 3 years ago

harrain commented 3 years ago

When I use socat to forward /var/run/usbmuxd to tcp port:

socat TCP-LISTEN:1234,reuseaddr,fork UNIX-CONNECT:/var/run/usbmuxd

It will transfer all ios devices. Is there and way to transfer just one device ???

I want to share my ios device via internet, but I just want to share only 1 device for 1 client.

mexmer commented 3 years ago

no, because you forwarding connection to USBMUXD, not to device.

usbmuxd forwards individual TCP sockets from device, but there is only 1 socket open on device all time, and that is lockdown service, other sockets will open, when you start service on device, and it will open at random port. so you will need to create new forward each time service socket is opened on device.

harrain commented 3 years ago

So how to create new forward from LOCKDOWN service?appreciate

mexmer commented 3 years ago

you need to write your own service, that will do it.