Android adb:无法建立连接,因为目标计算机主动拒绝了它

时间:2018-08-19 23:21:32

标签: android adb

需要帮助。

PC-Windows 10,没有simcard的Samsung S4(通过PC连接到同一wifi,通过USB连接到PC)。

到目前为止。我已经已经尝试取消选中/选中USB调试,拔下/插入USB,打开/关闭Wifi,只是无法连接...有什么问题吗?

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)

1 个答案:

答案 0 :(得分:1)

1。使用USB电缆连接PC和设备。 2.输入以下命令:

  adb kill-server
  adb tcpip 5555
  adb connect YourDeviceIpAddress(e.g 192.168.0.27, you could ensure it via viewing device configuration)