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

Using adb shell commands for port forwarding #22

Open
SbrezVis opened this issue Sep 4, 2019 · 1 comment
Open

Using adb shell commands for port forwarding #22

SbrezVis opened this issue Sep 4, 2019 · 1 comment

Comments

@SbrezVis
Copy link

SbrezVis commented Sep 4, 2019

Hey,
I'm using your app which is great!
But, I want to perform port forwarding through a pc which is connected to my android device via adb connect, I want to write some script which will automatically perform port forwarding given a known target, protocol, ports and etc.

  1. How can I do it? maybe modify your app, maybe using adb shell commands?

Basically I have a device which is connected via usb to my android and I want to ssh to it so I need to do port forward to it.

  1. How do I search for the IP of my tethered device via adb?
@ChillVibesMushroom
Copy link

adb tcpip 5555 bless me

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

2 participants