Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

could add new feature like android adb forward unix domian socket?, forwarding tcp packets through host machine port to ios device's unix domian socket #21

Open
janksenhu opened this issue Nov 13, 2020 · 1 comment

Comments

@janksenhu
Copy link

current iproxy not surpport forwarding unix domain socket

@janksenhu janksenhu changed the title could add new feature like adb forward , forwarding tcp packets through host machine port to ios device's unix domian socket could add new feature like adb forward unix domian socket?, forwarding tcp packets through host machine port to ios device's unix domian socket Nov 13, 2020
@janksenhu janksenhu changed the title could add new feature like adb forward unix domian socket?, forwarding tcp packets through host machine port to ios device's unix domian socket could add new feature like android adb forward unix domian socket?, forwarding tcp packets through host machine port to ios device's unix domian socket Nov 13, 2020
@janksenhu
Copy link
Author

janksenhu commented Nov 13, 2020

====================android adb forward=============
in android app creat unix socket:
serverSocket= new LocalServerSocket("android.net.LocalNativeSocket");

could forward like:
adb forward tcp:8080 localabstract:android.net.LocalNativeSocket ,works fine

forward [--no-rebind] LOCAL REMOTE
forward socket connection using:
tcp: ( may be "tcp:0" to pick any open port)
localabstract:
localreserved:
localfilesystem:
dev:
jdwp: (remote only)
acceptfd: (listen only)

=====================iproxy win10=============
win10 cmd like:

usage: iproxy.exe LOCAL_TCP_PORT DEVICE_TCP_PORT [UDID] [TCP|UNIX]

LOCAL_TCP_PORT: The TCP port to open on the host machine
DEVICE_TCP_PORT: The TCP port to which to connect on the device
UDID: The UDID of the device to which to connect
[TCP|UNIX]: The socket protocol to use to connect to usbmuxd. Can only be specified in combination with UDID.

win10 host machine port is 8080 , iphone 11 tcp socket server listen 127.0.0.1 5566

iproxy.exe 8080 5566 00008030-000A492A14C3802E TCP ,woks fine

  • iproxy.exe 192.168.1.100:8080 5566 00008030-000A492A14C3802E TCP ,not works

  • iproxy.exe 127.0.0.1:8080 5566 00008030-000A492A14C3802E TCP ,not works

==============iproxy cmd format different with macOS, Linux:========================
ERROR: Not enough parameters. Need at least one pair of ports.
Usage: iproxy [OPTIONS] LOCAL_PORT:DEVICE_PORT [LOCAL_PORT2:DEVICE_PORT2 ...]

Proxy that binds local TCP ports to be forwarded to the specified ports on a usbmux device.

OPTIONS:
-u, --udid UDID target specific device by UDID
-n, --network connect to network device
-l, --local connect to USB device (default)
-s, --source ADDR source address for listening socket (default 127.0.0.1)
-h, --help prints usage information
-d, --debug increase debug level
-v, --version prints version information

Homepage: https://libimobiledevice.org
Bug Reports: https://github.com/libimobiledevice/libusbmuxd/issues

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant