[英]Connect Android Wearable Emulator with Handheld device which is connected to adb WIRELESSLY
Is it possible to connect wearable emulator to handheld device which is connected to adb wirelessly ? 是否可以将可穿戴仿真器连接到无线连接到adb的手持设备?
1) First I connected my phone to adb wirelessly with the adb tcpip 5555 command. 1)首先,我使用adb tcpip 5555命令将手机无线连接到adb。 2) Now, my phone is connected with adb by ip address assigned to it in local wlan. 2)现在,我的手机通过本地wlan分配给它的IP地址与adb连接。 (adb connect ipaddress) 3) Now I started my emulator of wearable device and I want to connect that to that handheld device connected wirelessly. (adb connect ipaddress)3)现在我启动了可穿戴设备的模拟器,我想将它连接到无线连接的手持设备。 For normal connection, command for this is adb -d forward tcp:5601 tcp:5601 but I know that this obviously won't work here. 对于正常连接,命令为adb -d forward tcp:5601 tcp:5601但我知道这显然不适用于此处。
So my question here is : Is it possible to achieve this? 所以我的问题是:是否有可能实现这一目标? Whether it's a yes or no, can you explain me why ? 无论是或否,你能解释一下为什么吗? I don't have much idea about tcp ports etc. I tried to google it but could not find much information about it online. 我对tcp端口等没有太多了解。我试图谷歌它,但无法在网上找到很多关于它的信息。 So, it would be great if you can explain me about this. 所以,如果你可以向我解释这个问题会很棒。
It is written in adb help that forward command would forward the port depending on what you specify. 在adb帮助中写入,forward命令将根据您指定的内容转发端口。 So I also want to know about the exact detailing for this and how it works. 所以我也想了解这个的确切细节以及它是如何工作的。
I don't have any command over networking concepts so please explain accordingly. 我没有关于网络概念的任何命令,所以请相应地解释。
Thanks in advance. 提前致谢。
Modify the command to pair to device like this 修改命令以像这样配对设备
adb -s <remote_device_ip>:5555 -d forward tcp:5601 tcp:5601
Example in my case: 我案例中的例子:
adb -s 192.168.0.7:5555 -d forward tcp:5601 tcp:5601
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.