Examples (5)
Forward a TCP port to the only connected emulator or device
adb forward tcp:local_port tcp:remote_portForward a TCP port to a specific emulator or device (by device ID / [s]erial number)
adb -s device_ID forward tcp:local_port tcp:remote_portList all forwardings
adb forward --listRemove a forwarding rule
adb forward --remove tcp:local_portRemove all forwarding rules
adb forward --remove-allmade by @shridhargupta | data from tldr-pages