android pair command not found ( Wireless Debugging )

Viewed 10709

I am trying to connect to my phone wirelessly for USB Debugging using following :

adb pair 192.168.30.27:41424 .

But I am getting following error:

"Unknown command pair" error.

I have already updated Android SDK Platform tools to 31+ version, still this does not fix this issue.

3 Answers

Prior to Android 11, the command to connect ADB over WiFi was:

adb connect 192.168.30.27

Not pair.
Also, no code was needed.

Note, that you must first connect your device over USB and run:

adb tcpip 5555

To turn ADB over WiFi on.

Note, that to use the new pair command, your device must it self be running Android 11+, if it has an older OS, the SDK version on your PC will not matter.

I had similar issues. Uninstalling and installing Android SDK Platform-Tools solved the problem. Please make sure that the "Android SDK Platform-Tools" version is at least 30 or above.

If you updated recently then even though the update is on your system, you might have an older version of the adb server running. So try:

adb kill-server

and then adb pair again. Found this here: ADB pair unknown command using r32 platform tools

For me, adb pair still didn't work but the "pair devices over wifi" option in Android Studio did, after running that kill-server command.

Related