1

When I run adb devices on my MacBook Pro running OS X 10.14.6, I see not only my phone connected by USB but also a network device that I have no interest in. This forces me to manually specify which device I mean when using adb and Android Studio (which I sometimes forget to do). Is there any way to prevent adb from connecting to network devices?

FWIW, here's what I see at the shell (with some digits of my first device's serial number obscured):

$ adb devices
List of devices attached
HT8531AXXXXX    device
192.168.86.223:5555 device

Update: I was able to temporarily get the network device to go away by running adb disconnect, as suggested in an answer, but it keeps reappearing.

3
  • AFAIK, ADB doesn't automatically connect to network devices (i.e. the user has to manually call adb connect). Probably there's something from your side (3rd party apps on the PC, like screen mirroring, etc?) that is trying to initiate adb connect automatically? – Andrew T. Apr 9 '20 at 2:33
  • I have the same problem with Nvidia Shield. Have you fixed that? – Mateusz Kaflowski May 20 '20 at 22:34
  • @MateuszKaflowski It hasn't reappeared lately. – Ellen Spertus May 20 '20 at 23:03
2

The listed device 192.168.86.223:5555 device belongs to an device that has sometime been connected to your PC. adb saves this info until you manually disconnect this device.

To get rid of the entry execute the command

adb disconnect
3
  • Thanks, but it disappears only temporarily after I execute adb disconnect. Do you know how to make it go away permanently? – Ellen Spertus Apr 8 '20 at 22:39
  • @EllenSpertus Then most likely you have some software installed that automatically recreates this entry. Check the programs you have installed, especially those that execute automatically on start-up or when a device is connected. What OS do you use? – Robert Apr 9 '20 at 7:41
  • OS X. I'll update the question. – Ellen Spertus Apr 9 '20 at 19:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.