Sometimes Android wireless pairing from Device Manager UI does not work. This may happen because of WIFI network settings, which are not under our control (i.e. co-working space, cafe, hotel).
A fix that may work is using the adb
CLI commands for manual pairing.
-
Go to phone
Settings->Developer Options->Wireless Debugging
and clickPair device with pairing code
. -
A dialog shows Pair Code plus device IP address and port.
Note that IP:PORT in this dialog is different from your local device IP:PORT reported on the previous screen. We’ll use the other one later. For pairing we use must use this one in the Dialog window.
- Open terminal on development computer and type:
|
|
-
Enter Pairing Code displayed on your phone screen. Pairing should succeed.
-
Now connect to the device by using the other port number displayed before the Pairing dialog popup.
|
|
Now phone should be paired successfully with the dev computer.