【问题标题】:Android adb: No connection could be made because the target machine actively refused it [duplicate]Android adb:无法建立连接,因为目标机器主动拒绝它[重复]
【发布时间】:2019-01-26 02:25:30
【问题描述】:

需要帮助。

PC-Windows 10,Samsung S4 不带 SIM 卡(连接到与 PC 相同的 wifi,通过 USB 连接到 PC)。

到目前为止。我已经尝试过取消选中/选中 USBDebugging、拔下/插入 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)

【问题讨论】:

  • 我不确定 Galaxy S4 是否支持 adb-over-WiFi。那个模型相当老了。
  • 如果没有,怎么办?一定有办法将应用部署到老手机上。
  • @JuneWang 你对我的回答投了反对票吗?或许能告诉我为什么,谢谢!
  • “一定有办法把App部署到老手机上”——使用USB线。
  • 其实这不是重复的。此问题与某些设备上发生的特定错误有关:“无法建立连接,因为目标计算机主动拒绝它。(10061)”。是否可以重新打开问题?

标签: android adb


【解决方案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)

【讨论】:

  • @MartinZeitler 我在中国,可能会耽误时间。从现在开始我会等待一段时间来回答问题^_^,你会取消downnote吗?非常感谢
  • 有没有不先通过usb连接的方法?
  • 如果我们有usb线就不需要这个方法了,非常有趣的要求:(
猜你喜欢
  • 2011-08-24
  • 2023-03-25
  • 2015-04-05
  • 2016-12-08
  • 2014-09-05
  • 2017-06-01
  • 2016-08-10
  • 1970-01-01
相关资源
最近更新 更多