adb forward remote port to local machine

后端 未结 2 1523
野趣味
野趣味 2020-12-23 16:25

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

2条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-23 17:24

    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:

    1. list-forward
    2. forward:;
    3. forward:norebind:;
    4. killforward-all
    5. 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 that will be just host.

提交回复
热议问题