This is a query regarding the usage of adb on android.
Is there a way to forward the remote port i.e. port on the android device/emulator to the local machine to whi
Recently google updated ADB service. And added reverse
command that should do the job.
From reverse documentation:
This implements the
adb reverse
feature, i.e. the ability to reverse socket connections from a device to the host.is one of the forwarding commands that are described above, as in:
list-forward
forward:
; forward:norebind:
; killforward-all
killforward:
Note that in this case,
corresponds to the socket on the device and
corresponds to the socket on the host.
The output of
reverse:list-forward
is the same as host:list-forward except thatwill be just
host
.