libimobiledevice / libusbmuxd

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

Add option to bind iproxy socket to 0.0.0.0 #54

Closed NickAb closed 1 year ago

NickAb commented 6 years ago

Executing iproxy LOCAL_TCP_PORT DEVICE_TCP_PORT will bind LOCAL_TCP_PORT to localhost only.

Make an optional flag to bind to 0.0.0.0 so that the port will be exposed and accessible by other hosts. This is useful to build small device-farm, where all devices connected to one host and other hosts are used to run tests, etc. on devices connected remotely.

Current solution we use is socat

socat tcp-listen:LOCAL_TCP_PORT,reuseaddr,fork tcp:0.0.0.0:LOCAL_TCP_PORT

But this requires extra dependencies to be installed on host and managing extra process per port.

dispatchMain commented 5 years ago

A PR to fix this issue #74 which enables accepting connections from other machines in network.

nikias commented 1 year ago

Support for this was added with commit https://github.com/libimobiledevice/libusbmuxd/commit/910166b3d67652abb54dece7e1cacdc9dcfdb659.