简体   繁体   English

无法通过 ADB 连接到设备的端口

[英]Can't connect through ADB to device's port

I'm trying to connect to a TV set-top box.我正在尝试连接到电视机顶盒。 After issuing "adb connect my_IP_address" I get this error "No connection could be made because the target machine actively refused it. (10061)".发出“adb connect my_IP_address”后,我收到此错误“无法建立连接,因为目标机器主动拒绝它。(10061)”。 I've tried many basic solutions like the ones from this SO thread but they either don't work or I can't attempt them since they require a USB cable connection and my device dosen't respond to that for some reason.我已经尝试了许多基本解决方案,例如来自这个SO 线程的解决方案,但它们要么不起作用,要么我无法尝试它们,因为它们需要 USB 电缆连接,而我的设备由于某种原因没有响应。

USB debugging is enabled and I'm sure the device is connected to the same network since I successfully pinged it. USB 调试已启用,并且我确定该设备已连接到同一网络,因为我已成功 ping 了它。 Surprisingly I discovered that the 5555 port which is usually used for connecting isn't even open.令人惊讶的是,我发现通常用于连接的 5555 端口甚至没有打开。 I got that from using Nmap to check for a particular port.我通过使用 Nmap 检查特定端口得到了这一点。 Then I used Nmap to see which ports are open and only got 3:然后我用Nmap查看了哪些端口是开放的,只有3个:

PORT     STATE SERVICE

8008/tcp open http 8008/tcp 打开http
8009/tcp open ajp13 8009/tcp 打开 ajp13
9000/tcp open cslistener 9000/tcp 打开 cslistener

None of those is suitable for a connection and it looks like there is no available port?这些都不适合连接,看起来没有可用的端口? What can I do from here?我可以从这里做什么?

First, you need to open the 5555 port for communication首先需要打开5555端口进行通信

Step to open the port步骤打开端口

  1. plug your device to the pc将您的设备插入电脑

  2. issue command to open the port adb start-server 5555发出命令打开端口adb start-server 5555

  3. adb connect my_IP_address:5555 adb 连接 my_IP_address:5555

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM