Wednesday, July 11, 2012

Error: adb unable to connect xxx.xxx.xxx.xxx:5555

I had this problem when I tried to adb connect to the virtual phone in KVM. You might also have this problem using the emulator.


Solution:

Step 1. Don't panic, if you have tried methods like "setprop service.adb.tcp.port 5555, stop adbd, start adbd", which didn't work.

Step 2: In the phone terminal, type

# adb remount

Step 3: Try connecting again.

$ adb kill-server
$ adb connect xxx.xxx.xxx.xxx
  ...
  xxx.xxx.xxx.xxx (hopefully) connected.

Step 4: Problem solved.

9 comments:

  1. If above doesn't work
    then type
    $ adb kill-server
    $ adb start-server
    $ adb connect :5555

    ReplyDelete
    Replies
    1. $ adb connect xxx.xxx.xx.xx:5555

      Delete
  2. no, it doest not help, still I am getting in the virtual machine "unable to connect to localhost:5555: cannot connect to localhost:5555: No connection could be made because the target machine actively refused it. (10061)"

    ReplyDelete
  3. The above is not working. Problem not solved

    ReplyDelete
  4. its does not work same problem arise

    ReplyDelete
  5. I found the solution, just redo these steps:
    -> connect the device
    -> Type in console 'adb tcpip 5555'
    and that's it now just connect your device:
    -> adb connect xxx.xxx.xxx.x

    ReplyDelete
  6. does't found solution after use all solution ....same problem occur

    ReplyDelete
  7. easy solution i have for this problem, just restart device/and connect to nat and disconnect the wifi connection from device/mobile
    after that now work on cmd try to connect now

    ReplyDelete
  8. The device you're trying to connect to needs to accept the request. Check the settings on the device.

    ReplyDelete