Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote XCode connectivity ( like remoteURL for ADB ) #58

Open
chaooe opened this issue Aug 12, 2020 · 5 comments
Open

Remote XCode connectivity ( like remoteURL for ADB ) #58

chaooe opened this issue Aug 12, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@chaooe
Copy link

chaooe commented Aug 12, 2020

Does it support the remoteUrl function which like android device?
In android devices, i can connect the devices anywhere in the corp network by the remoteUrl. So if the iOS device have proxy the port, so we can use it to connect it anywhere

@nanoscopic
Copy link
Collaborator

By "remote url" do you mean "remote debug" to adb connect to a device already connected to STF?

@chaooe
Copy link
Author

chaooe commented Aug 14, 2020

Yes. Something like the adb connect function. So we can use stf server to manage the devices operation.

@nanoscopic
Copy link
Collaborator

This can be done in the following way:

---- Mac Provider ----
Listen on 0.0.0.0:12345 and proxy to /var/run/usbmuxd
sudo socat TCP-LISTEN:12345,reuseaddr,fork UNIX-CLIENT:/var/run/usbmuxd

---- Mac Client ----
Move the existing usbmuxd unix domain socket away, and replace it with a TCP proxy.

Move the existing usbmuxd socket away:
sudo mv /var/run/usbmuxd /var/run/usbmuxx

Listen on /var/run/usbmuxd, and proxy requests to :12345
sudo socat -t100 -x -v UNIX-LISTEN:/var/run/usbmuxd,mode=777,reuseaddr,fork TCP:<mac provider ip>:12345

The 'mac provider' portion will be automatically done by coordinator in the near future, and the information passed through to display in the same location it is shown for android devices.

@chaooe
Copy link
Author

chaooe commented Aug 14, 2020

Thanks for your advanced support. I will try it by using your solution.

@nanoscopic
Copy link
Collaborator

The latest updates to stf-ios-provider automatically start socat providing usbmuxd on a port. The IP:PORT combination is displayed in the UI in the field where ADB connect information was shown.

The field still shows 'adb connect IP:PORT', which is misleading, but the IP:PORT combination shown can be used to connect using socat as described above.

@nanoscopic nanoscopic changed the title Does it support the remoteUrl function which like android device Remote XCode connectivity ( like remoteURL for ADB ) Sep 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants