ACC Logo
ADBNetworkSafe

adb reverse tcp:<remote_port> tcp:<local_port>

Reverse socket connection (device to host)

What It Does

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).

Command Syntax
Terminal
$adb reverse tcp:<device_port> tcp:<host_port>
Parameters & Placeholders Breakdown

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 Number

The TCP network port number used for ADB daemon communication over Wi-Fi or USB forwarding.

Real-world value:5555
Command syntax: adb tcpip 5555 (or: adb connect 192.168.1.50:5555)
Port 5555 is the standard default port for ADB over Wi-Fi. Ports below 1024 require root privileges.
<host_port>Network Port Number

The TCP network port number used for ADB daemon communication over Wi-Fi or USB forwarding.

Real-world value:5555
Command syntax: adb tcpip 5555 (or: adb connect 192.168.1.50:5555)
Port 5555 is the standard default port for ADB over Wi-Fi. Ports below 1024 require root privileges.
<remote_port>Network Port Number

The TCP network port number used for ADB daemon communication over Wi-Fi or USB forwarding.

Real-world value:5555
Command syntax: adb tcpip 5555 (or: adb connect 192.168.1.50:5555)
Port 5555 is the standard default port for ADB over Wi-Fi. Ports below 1024 require root privileges.
<local_port>Network Port Number

The TCP network port number used for ADB daemon communication over Wi-Fi or USB forwarding.

Real-world value:5555
Command syntax: adb tcpip 5555 (or: adb connect 192.168.1.50:5555)
Port 5555 is the standard default port for ADB over Wi-Fi. Ports below 1024 require root privileges.
Usage Examples
$adb reverse tcp:3000 tcp:3000
$adb reverse tcp:8081 tcp:8081
Prerequisites & Requirements
  • Android 5.0+
Related Commands
Found an error or missing flag for adb reverse tcp:<remote_port> tcp:<local_port>?

Submit a correction or request additional examples on GitHub.

Having issue? Contact @mkr_infinity

Direct technical assistance & ROM flashing troubleshooting by Mohammad Kaif Raja.

Contact @mkr_infinity