adb reverse

Reverse socket connections from a connected Android device or emulator. More information: https://developer.android.com/tools/adb.

adb reverse --list

adb reverse tcp:{{remote_port}} tcp:{{local_port}}

adb reverse --remove tcp:{{remote_port}}

adb reverse --remove-all