CmdID

CmdID / Commands

adb-forward

Forward socket connections to a connected Android device or emulator. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Forward a TCP port to the only connected emulator or device

adb forward tcp:local_port tcp:remote_portIdentify

Forward a TCP port to a specific emulator or device (by device ID / serial number)

adb -s device_id forward tcp:local_port tcp:remote_portIdentify

List all forwardings

adb forward --listIdentify

Remove a forwarding rule

adb forward --remove tcp:local_portIdentify

Remove all forwarding rules

adb forward --remove-allIdentify