4

I have a Intel Edison running Android Things. I was able to adb fine into the device using usb. I wanted to switch to using adb over tcp/ip. So I ran the following command.

adb tcpip 5555
adb kill-server

I then disconnected my device from the usb cable and rebooted it. When I try to connect to my device via:

adb connect 10.0.0.20

I get the following error:

unable to connect to 10.0.0.20:5555: Connection refused

I do see the device on the network, just that I am not able to connect to it. When I connect the device via usb again, I am unable to connect via usb either since it doesn't show up in the adb device list.

adb devices
List of devices attached
<no devices listed>

Two questions:

  1. How can I flip the device back to being debuggable via USB?
  2. How do I correctly setup adb over tcp/ip?
4

2 回答 2

0

看起来像重新启动我的主机修复它(MB Pro)。USB 堆栈可能存在问题 - 经常连接/断开设备很可能会导致一些奇怪。

于 2017-01-27T23:51:47.853 回答
0

您必须重新启动机器主机。重启后,再次连接:adb connect <ip_address>:5555

于 2019-12-02T09:25:56.330 回答