adb-reverse
Reverse socket connections from a connected Android device or emulator. tldr-pages
On several platforms
Several platforms
List all reverse socket connections from emulators and devices
adb reverse --listIdentifyReverse a TCP port from the only connected emulator or device to localhost
adb reverse tcp:remote_port tcp:local_portIdentifyReverse a TCP port from a specific emulator or device (by device ID / serial number) to localhost
adb -s device_id reverse tcp:remote_port tcp:local_portIdentifyRemove a reverse socket connection from an emulator or device
adb reverse --remove tcp:remote_portIdentifyRemove all reverse socket connections from all emulators and devices
adb reverse --remove-allIdentify