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.
If above doesn't work
ReplyDeletethen type
$ adb kill-server
$ adb start-server
$ adb connect :5555
$ adb connect xxx.xxx.xx.xx:5555
Deleteno, 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)"
ReplyDeleteThe above is not working. Problem not solved
ReplyDeleteits does not work same problem arise
ReplyDeleteI found the solution, just redo these steps:
ReplyDelete-> connect the device
-> Type in console 'adb tcpip 5555'
and that's it now just connect your device:
-> adb connect xxx.xxx.xxx.x
does't found solution after use all solution ....same problem occur
ReplyDeleteeasy solution i have for this problem, just restart device/and connect to nat and disconnect the wifi connection from device/mobile
ReplyDeleteafter that now work on cmd try to connect now
The device you're trying to connect to needs to accept the request. Check the settings on the device.
ReplyDelete