我通过wifi连接到xxx:xxx:x:xxx:5556,在Phone1上调试我的xamarin android应用程序。我尝试在Phone2上通过wifi调试应用程序,其中只有usb调试是直接选项。我用来连接Phone2的命令是adb tcpip 5555,adb connect xxx:xxx:x:xxx:5555。现在我想连接回Phone1:adb connect xxx:xxx:x:xxx:5556它给我错误:“无法连接xxx:xxx:x:xxx:5556:5555:无法解析主机'xxx .xxx.x.xxx:5556'和端口5555:没有这样的主机已知“我该如何解决这个问题?
你必须在运行adb tcpip 5556
之前运行adb connect xxx:xxx:x:xxx:5556
尝试这一系列操作/命令,以便通过WiFi调试USB主机设备:
adb kill-server
adb tcpip 5555
adb设备
should show something like
List of devices attached
99679a67 device
adb connect 192.168.14.94:5555
adb设备
should show something like
List of devices attached
99679a67 device
192.168.14.94:5555 device
adb connect 192.168.14.94:5555
should show
connected to 192.168.14.94:5555
adb设备
should show
List of devices attached
192.168.14.94:5555 device