FwdPortForwardingApp icon indicating copy to clipboard operation
FwdPortForwardingApp copied to clipboard

Using adb shell commands for port forwarding

Open SbrezVis opened this issue 6 years ago • 1 comments

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?

SbrezVis avatar Sep 04 '19 13:09 SbrezVis

adb tcpip 5555 bless me

ChillVibesMushroom avatar Apr 04 '22 04:04 ChillVibesMushroom