15

I have Android 11 on my phone, I have setup Wireless Debugging, and in the list of Paired Devices my computer shows up. However, when I run adb devices -l on my computer, the list of devices is empty.

Why am I seeing an empty list. Is there something extra that I need to do?

Here is the device:

Device

Here is the terminal:

Terminal

Get Off My Lawn
  • 34,175
  • 38
  • 176
  • 338

2 Answers2

23

You will need to connect to the device before it becomes visible in adb devices -l. You must run adb connect ipaddress:port, in your case adb connect 192.168.1.123:37457. Docs

Mohammad Kurjieh
  • 1,043
  • 7
  • 16
  • 3
    No it is a different command, the one responsible for pairing is `adb pair ipaddr:port` but `adb connect ipaddr:port` is used to connect to the device after being paired. – Mohammad Kurjieh Jan 11 '21 at 22:34
  • 2
    Yeah, I just realized that. Thanks for the help. The doc I was using didn't say you needed to run the `connect` command. – Get Off My Lawn Jan 11 '21 at 22:35
  • 1
    Sure most welcome, please mark the answer as accepted in order to help the others who might stumble upon this in the future. – Mohammad Kurjieh Jan 11 '21 at 22:38
  • Not working for me. Failed to connect to 'ip:port': Connection refused. – maXp Nov 13 '21 at 08:29
  • 4
    That's right, you must use the `connect` after the `pair`, but be careful and specify the `ip:port` from the main wifi debugging settings page and not the ones used in the `pair` command. – maXp Nov 13 '21 at 08:41
  • @maXp I think your comment should be part of the answer. – electroid Jul 21 '23 at 14:43
-1

It says unknown command adb pair Saw the help there is no pair command listed in the menu

Instead go to platform-tools folder in my case ~/Android/Sdk/platform-tools from here you can execute ./adb and then in the help you can see there the pair option ./adb pair <ipaddress>:<port> will prompt for pairing code

Then you are sucessfully connected

enter image description here

Tushar Mistry
  • 373
  • 1
  • 9