adb forward

forward socket connections

adb forward <local> <remote>

adb forward tcp:8000 tcp:9000 set up forwarding of host port 8000 to emulator/device port 9000

Prerequisites: Enable USB debugging on the device.