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

Support -H or -L like adb to specify hostname #2348

Closed
jeanlego opened this issue May 29, 2021 · 4 comments
Closed

Support -H or -L like adb to specify hostname #2348

jeanlego opened this issue May 29, 2021 · 4 comments

Comments

@jeanlego
Copy link

jeanlego commented May 29, 2021

Setup

  • The device is connected via usb (no internet access possible)
  • I am running an adb server on a remote machine
  • I am getting an adb shell on my dev machine using adb -H <hostname> shell succesfully.
[ android ] -- usb --- [ adb server ] ---  Lan  --- [ dev machine ]

Request

I was wondering if there was anyway to specify the hostname of the adb server to reproduce the same behavior without requiring an SSH tunnel with port fowarding as others have used.

 -H         name of adb server host [default=localhost]
 -L SOCKET  listen on given socket for adb server [default=tcp:localhost:5037]
@eadmaster
Copy link

eadmaster commented May 30, 2021

EDIT: i see now

@jeanlego
Copy link
Author

The tunnel does work the same, so, while this is still valid, I don't think there is much value to it after thinking it through.
I don't know how much work it would be to connect to a specified host vs localhost.
I'd be willing to give it a shot if someone knows it wouldn't be too too involved

@rom1v
Copy link
Collaborator

rom1v commented May 30, 2021

You can do the equivalent of -H with ADB_SERVER_SOCKET. See #144 (comment)

@jeanlego
Copy link
Author

ah! this is awesome thanks :)

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

No branches or pull requests

3 participants