[英]How to connect device over wifi using ADB or Command Prompt
I am run command over cmd that working我正在通过 cmd 运行命令
adb that working
adb tcpip 5555
when throw adb connect its show failed to connect to 100.91.174.70:5555当 throw adb connect 时,它的节目未能连接到 100.91.174.70:5555
even adb -l also shows me connected device list.甚至 adb -l 也显示我连接的设备列表。
so where i did mistake never get if anyone have some problem or get solution please share.所以我做错的地方永远不会得到如果有人有问题或得到解决方案请分享。
Thanks in advence提前致谢
C:\\Users\\%username%\\AppData\\Local\\Android\\sdk\\platform-tools
-->for checking whether your device is connected or not -->用于检查您的设备是否已连接
adb devices
亚行设备
-->this gives you this kind of response if it is connected -->如果它已连接,这会给你这种响应
List of devices attached
连接的设备列表
9153c6a4 device
9153c6a4 装置
--> please be sure that your device and your computer connected to same wifi or network --> after that write --> 请确保您的设备和您的计算机连接到相同的 wifi 或网络 --> 之后写
adb shell setprop service.adb.tcp.port 5555
adb shell setprop service.adb.tcp.port 5555
-->then press enter and write this -->然后按回车键写这个
adb tcpip 5555
亚行 tcpip 5555
-->press enter and get you device ip and add this line -->按回车键并获取您的设备IP并添加这一行
adb connect 192.168.0.1:5555
亚行连接 192.168.0.1:5555
192.168.0.1 is my device ip
192.168.0.1 是我的设备ip
-->this connect your device using wifi -->这使用wifi连接您的设备
Your device and PC both should be under same network.then only it will able to connect.您的设备和 PC 应该在同一个网络下。只有它才能连接。
Eg例如
If your device is connected with mobile network and your PC use broadband internet then it will not work.如果您的设备已连接移动网络,而您的 PC 使用宽带互联网,则无法使用。
-->for checking whether your device is connected or not -->用于检查您的设备是否已连接
adb devices
亚行设备
-->this gives you this kind of response if it is connected -->如果它已连接,这会给你这种响应
List of devices attached
连接的设备列表
8053a4b6 device
8053a4b6 设备
--> please be sure that your device and your computer connected to same wifi or network --> after that write --> 请确保您的设备和您的计算机连接到相同的 wifi 或网络 --> 之后写
adb shell setprop service.adb.tcp.port 1111
adb shell setprop service.adb.tcp.port 1111
-->then press enter and write this -->然后按回车键写这个
adb tcpip 1111
亚行 tcpip 1111
-->press enter and get you device ip and add this line -->按回车键并获取您的设备IP并添加这一行
adb connect 192.168.0.1:4444
亚行连接 192.168.0.1:4444
-->this connect your device using wifi -->这使用wifi连接您的设备
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.