C:\Windows\System32>w
C:\Windows\System32>echo ***Get phone in Wi-Fi mode******Get phone in Wi-Fi mode***
C:\Windows\System32>echo ***Get phone in Wi-Fi mode******Get phone in Wi-Fi mode***
C:\Windows\System32>adb devicesList of devices attachedd4e9f06 device
C:\Windows\System32>echo ***Remove cable from the Phone now******Remove cable from the Phone now***
C:\Windows\System32>adb tcpip 9000restarting in TCP mode port: 9000
C:\Windows\System32>adb connect 192.168.1.1:9000unable to connect to 192.168.1.1:9000:9000
C:\Windows\System32>adb connect 192.168.1.2:9000connected to 192.168.1.2:9000
C:\Windows\System32>adb connect 192.168.1.3:9000unable to connect to 192.168.1.3:9000:9000
C:\Windows\System32>adb connect 192.168.1.4:9000unable to connect to 192.168.1.4:9000:9000
C:\Windows\System32>adb connect 192.168.1.5:9000unable to connect to 192.168.1.5:9000:9000
C:\Windows\System32>adb connect 192.168.1.6:9000unable to connect to 192.168.1.6:9000:9000
a. Dial *#*#4636#*#* to open the Testing menu.b. In the Wi-Fi information menu: click Wi-Fi Statusc. Wi-Fi status can be blank for the first timed. Click Refresh Statuse. In the IPaddr: <<IP ADDRESS OF THE PHONE IS LISTED>>
Step 1. Connect PC and Wi-Fi via a cableStep 2. Start CMD - to go to Windows DOS promptStep 3. Type "w"Step 4. Find connected command in the outputStep 5. Success, remove cable and start using Eclipse
connect mobile to laptop (PC)find adb path in Eclipse or Go Tast manager (<kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>Esc</kbd>) -> process -> adb.exe -> right-click -> open file location -> copy the path of the open window (like D:\.....)
步骤2:
open cmd and change directory like C:, D:, E:, and G:1: C:\Users\UMT>D:2: D:\> cd (past path of adb) like (ANDROID eclipse\Eclipse Setup\adt-bundle-windows-x86_64-202\sdk\plat-form-tools) and press enter3: Then type `adb tcpip 5555`. Press <kbd>Enter</kbd> ... make sure your mobile connects to the PC
步骤3:
Open new cmd and same above, go to the adb directory and typeadb connect 192.168.x.x(device ip):5555press enter now connect it.
$ adb devicesList of devices attached######## device
Restart host adb in tcpip mode.
$ adb tcpip 5555restarting in TCP mode port: 5555
Find out the IP address of the Android device: Settings -> About tablet -> Status -> IP address. Remember the IP address, of the form #.#.#.#.sometimes its not possible to find the IP-address of the android device, as in my case. so u can get it using adb as the following:$ adb shell netcfgand the should be in the last line of the result.
Connect adb host to device:
$ adb connect #.#.#.#connected to #.#.#.#:5555
Remove USB cable from device, and confirm you can still access device:
$ adb devicesList of devices attached#.#.#.#:5555 device
You're now good to go!
If the adb connection is ever lost:
Make sure that your host is still connected to the same Wi-Fi network your Android device is.
Reconnect by executing the "adb connect" step again.
#!/usr/bin/env bash#Notice: if unable to connect to [ip]:5555,#try adb kill-server then try again.
adb shell ip route > addrs.txt#Case 1:Nexus 7#192.168.88.0/23 dev wlan0 proto kernel scope link src 192.168.89.48
#Case 2: Smartsian T1,Huawei C8813#default via 192.168.88.1 dev eth0 metric 30#8.8.8.8 via 192.168.88.1 dev eth0 metric 30#114.114.114.114 via 192.168.88.1 dev eth0 metric 30#192.168.88.0/23 dev eth0 proto kernel scope link src 192.168.89.152 metric 30#192.168.88.1 dev eth0 scope link metric 30
ip_addrs=$(awk {'if( NF >=9){print $9;}'} addrs.txt)
echo "the device ip address is $ip_addrs"
echo "connecting..."
rm addrs.txt
adb tcpip 5555
adb connect "$ip_addrs"
$> adb devices // check all usb debuggable devices connected.
$> adb -d shell // Access device shell.
shell> ifconfig // Check and copy wifi ip-address eg:192.168.1.90
shell> exit // Exit from android device shell.
$> adb tcpip 5000 // open TCP port 5000 (or any available)
$> adb connect 192.168.1.90:5000 // connect to device via wifi ip over specific TCP port.
$> adb devices // you will get debuggabled android device over wifi.
first you shold connect your device with usb to pc after that run cmd and drag and drop adb.exe that is in sdk/platform-tools path and write below code :
....\Sdk\platform-tools\adb.exe devices
.....\Sdk\platform-tools\adb.exe tcpip 5555
.....\Sdk\platform-tools\adb.exe connect Ip address:5555
ADB over Wi-Fi:大黄蜂包含一个简化的流程来连接到您的Android 11及更高版本设备通过Wi-Fi进行部署和使用ADB调试。在您的设备上启用Wi-Fi调试后设备的物理选项卡中选择使用Wi-Fi的配对操作新建设备管理器以打开配对向导。然后按照步骤操作提供以配对到通过同一网络连接的设备。学习更多