elixsr / FwdPortForwardingApp

Port Forwarding App for Android
http://elix.sr/fwd
GNU General Public License v3.0
112 stars 45 forks source link

Using adb shell commands for port forwarding #22

Open SbrezVis opened 5 years ago

SbrezVis commented 5 years ago

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 commented 2 years ago

adb tcpip 5555 bless me