Speed Test for Debugging Android Over Wi-Fi with ADB
Because the USB cable port became unstable after repeated plugging and unplugging, I tested the speed of Wi-Fi debugging with ADB. The debugging device was a Huawei Maimang 5 phone, connected to the router via Wi-Fi at a connection speed of 72 Mbps, while the PC was connected to the router directly with an Ethernet cable.
The PC's IP address was 192.168.3.3, and the phone's Wi-Fi address was 192.168.3.4. After connecting successfully with
adb connect 192.168.3.4:5555
I pushed a file with
adb push D:/Data/1.pdf /sdcard/
The measured speed was:
D:/Data/1.pdf: 1 file pushed. 2.3 MB/s (23766659 bytes in 9.860s)
Then, after enabling port forwarding on the router and connecting to the router's public-facing address:
adb connect 192.168.3.1:5555
and testing file push again:
D:/Data/1.pdf: 1 file pushed. 3.4 MB/s (23766659 bytes in 6.673s)
I then tested turning off port mapping and enabling DMZ directly. The speed was not very stable, but stayed between 3.1 MB/s and 3.2 MB/s. Thus, using port mapping for debugging is much faster, but still far behind a USB cable connection.