Alternatively, it is possible to enable the TCP/IP connection manually using
adb
:
-
Plug the device into a USB port on your computer.
-
Connect the device to the same Wi-Fi network as your computer.
-
Get your device IP address, in Settings → About phone → Status, or by executing this command:
adb shell ip route | awk '{print $9}'
-
Enable
adb
over TCP/IP on your device:adb tcpip 5555
. -
Unplug your device.
-
Connect to your device:
adb connect DEVICE_IP:5555
(replaceDEVICE_IP
with the device IP address you found). -
Run
scrcpy
as usual. -
Run
adb disconnect
once you're done.
Since Android 11, a wireless debugging option allows you to bypass having to physically connect your device to your computer.
0 comments:
Post a Comment