ACC Logo
ADBDevice & ConnectionSafe

adb pair <ip>:<port> [pairing_code]

Pair wireless debugging (Android 11+)

What It Does

Pairs a computer with an Android 11+ device using TLS authentication and a 6-digit one-time pairing code from Developer Options.

Command Syntax
Terminal
$adb pair <host>:<port> [code]
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:

<host>Device IP Address or Hostname

The local Wi-Fi IPv4 address or hostname assigned to the Android device on your local network.

Real-world value:192.168.1.105
Command syntax: adb connect 192.168.1.105:5555
Find this in Android Settings > About Phone > Status > IP Address.
<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.
[code]CODE Parameter

Replace this placeholder with your specific code value.

Real-world value:your-code
Command syntax: adb pair <host>:<port> your-code
<ip>IP Parameter

Replace this placeholder with your specific ip value.

Real-world value:your-ip
Command syntax: adb pair <host>:<port> [code]
[pairing_code]PAIRING CODE Parameter

Replace this placeholder with your specific pairing code value.

Real-world value:your-pairing_code
Command syntax: adb pair <host>:<port> [code]
Usage Examples
$adb pair 192.168.1.105:37129 849201
$adb pair 192.168.1.105:41255
Options & Flags
Flag / ParameterDescription
[code]6-digit Wi-Fi pairing code displayed on Android screen. Prompts if omitted.
Prerequisites & Requirements
  • Android 11 or higher
  • Wireless debugging enabled
  • Same local network
Related Commands
Found an error or missing flag for adb pair <ip>:<port> [pairing_code]?

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