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.

4 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