Shrinidhi K Shrinidhi K - 1 month ago 32
Android Question

Unable to connect to device with Marshmallow for wireless debugging. Getting (10061) error

I am trying to connect to an Android device with Marshmallow for wireless debugging.

C:\...\sdk\platform-tools>adb connect 192.168.1.103:5555
unable to connect to 192.168.1.103:5555: cannot connect to 192.168.1.103:5555:
No connection could be made because the target machine actively refused it. (10061)


I also tried
adb connect "192.168.1.103:5556"
and
"adb connect 192.168.1.103"
but ended up with same result.

The first command above used to work fine on my OnePlus Two before the Marshmallow update.

Any help on how to do wireless debugging on Marshmallow?

Answer

I am also using the One Plus two and updated to marshmallow 2 weeks ago . i have the same issue

try to kill your adb sever then try again .

adb kill-server

you should use 5556 port number not 5555 anymore

if its not working connect your phone via usb cable then restart the adb into wireless mode

adb tcpip 5556

then try to connect your phone with the port no 5556 (eg ip:5556) after connected you can remove your usb cable

it worked for me

Comments