Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android adb: No connection could be made because the target machine actively refused it [duplicate]

Tags:

android

adb

Help needed.

PC-Windows 10, Samsung S4 without simcard(connected to same wifi with PC, connected to PC thru USB).

So far. I've already tried uncheck/check USBDebugging, unplug/plugin USB, on/off Wifi, just couldn't get connection...What can possibly be wrong?

C:\Users\junew>adb devices

List of devices attached
d71ba392        device

C:\Users\junew>adb connect 192.168.0.27

unable to connect to 192.168.0.27:5555: cannot connect to 192.168.0.27:5555: No connection could be made because the target machine actively refused it. (10061)(nothing pops up on my screen)

C:\Users\junew>adb kill-server

C:\Users\junew>adb usb

* daemon not running; starting now at tcp:5037
* daemon started successfully

C:\Users\junew>adb connect 192.168.0.27

unable to connect to 192.168.0.27:5555: cannot connect to 192.168.0.27:5555: No connection could be made because the target machine actively refused it. (10061)(Window pops up on Samsung screen, but still unable to connect)
like image 201
June Wang Avatar asked Aug 19 '18 23:08

June Wang


1 Answers

1.Connect PC and device with USB cable. 2.Input below commands:

  adb kill-server
  adb tcpip 5555
  adb connect YourDeviceIpAddress(e.g 192.168.0.27, you could ensure it via viewing device configuration)
like image 74
navylover Avatar answered Oct 18 '22 20:10

navylover