adb reverse tcp:<remote_port> tcp:<local_port>
Reverse socket connection (device to host)
Allows network requests originating on the Android device to route back into a server running on your computer localhost (e.g. dev server on port 3000).
adb reverse tcp:<device_port> tcp:<host_port>This command syntax includes specific placeholder tokens. Below is an explanation of what each word represents and concrete real-world values to replace it with:
<device_port>Network Port NumberThe TCP network port number used for ADB daemon communication over Wi-Fi or USB forwarding.
adb tcpip 5555 (or: adb connect 192.168.1.50:5555)<host_port>Network Port NumberThe TCP network port number used for ADB daemon communication over Wi-Fi or USB forwarding.
adb tcpip 5555 (or: adb connect 192.168.1.50:5555)<remote_port>Network Port NumberThe TCP network port number used for ADB daemon communication over Wi-Fi or USB forwarding.
adb tcpip 5555 (or: adb connect 192.168.1.50:5555)<local_port>Network Port NumberThe TCP network port number used for ADB daemon communication over Wi-Fi or USB forwarding.
adb tcpip 5555 (or: adb connect 192.168.1.50:5555)adb reverse tcp:3000 tcp:3000adb reverse tcp:8081 tcp:8081- Android 5.0+
adb reverse tcp:<remote_port> tcp:<local_port>?Submit a correction or request additional examples on GitHub.
Direct technical assistance & ROM flashing troubleshooting by Mohammad Kaif Raja.