Shrinidhi K Shrinidhi K - 1 year ago 155
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
unable to connect to cannot connect to
No connection could be made because the target machine actively refused it. (10061)

I also tried
adb connect ""
"adb connect"
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 Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download