<strong>首先将两台<u>鸿蒙</u>设备插入<u>电脑</u>的<u>usb</u>上</strong></p>

<strong>查看两台鸿蒙设备的deviceid</strong></p>

C:\Use<u>rs</u>\<u>Ad</u>ministrator》adb devices</p>

* daemon not running; star<u>ti</u>ng now at tcp:5037</p>

* daemon star<u>te</u>d successfully</p>

List of devices att<u>ac</u>hed</p>

FRU6R2011500QWER unauthorized</p>

MVT5T1970300ABCD unauthorized</p>

<strong>切换成wifi调试,将以下命令依次输入</strong></p>

adb -s MVT5T1970300ABCD tcpip 55555</p>

restarting in TCP mode port: 55555</p>

adb -s FRU6R2011500QWER tcpip 55556</p>

restarting in TCP mode port: 55556</p>

<strong>依次进入每台鸿蒙设备看一下上面的ip地址</strong></p>

<strong>依次连接两台鸿蒙设备</strong></p>

C:\Users\Administrator》adb connect 192.168.0.10:55555</p>

connected to 192.168.0.10:55555</p>

C:\Users\Administrator》adb connect 192.168.0.20:55556</p>

connected to 192.168.0.20:55556</p>

#试错,看看重复连会怎么样</p>

C:\Users\Administrator》adb connect 192.168.0.10:55555</p>

already connected to 192.168.0.10:55555</p>

<strong>使用scrcpy 连接一台鸿蒙设备</strong></p>

C:\Users\Administrator》scrcpy -s 192.168.0.10:55555</p>

INFO: scrcpy 1.17 《https://github.com/Genymobile/scrcpy》</p>

C:\Prog<u>ram</u>Data\chocolatey\lib\scrcpy\tools\scrcpy-server: 1 file pushed, 0 skipped. 1.0 MB/s (34930 bytes in 0.034s)</p>

[server] INFO: Device: HUAWEI TAS-AL00 (<u>Android</u> 10)</p>

INFO: Renderer: direct3d</p>

INFO: Initial texture: 1080x2336</p>

<strong>使用鸿蒙专用deveco开发工具连接:运行</strong></p>

<img alt="" src="https://www.thewebua.com/uploads/202405/01/4cc43461d2e8ce30.webp"/></p>

<strong>使用鸿蒙专用deveco开发工具连接:调试</strong></p>

<img alt="" src="https://www.thewebua.com/uploads/202405/01/701e70829fe7662c.webp"/></p>

结论:<u>鸿蒙系统</u>兼容adb wifi调试,对于想不要约束的<u>开发者</u>,可以使用.</p>