Compare commits
6 Commits
bash_compl
...
wireless-s
Author | SHA1 | Date | |
---|---|---|---|
b75873ce45 | |||
bcc6354e99 | |||
d8a72c7134 | |||
cbc72e417c | |||
bafa535425 | |||
cc3b6f4d58 |
24
README.md
24
README.md
@ -328,18 +328,30 @@ For example, you could capture the video within [OBS].
|
|||||||
_Scrcpy_ uses `adb` to communicate with the device, and `adb` can [connect] to a
|
_Scrcpy_ uses `adb` to communicate with the device, and `adb` can [connect] to a
|
||||||
device over TCP/IP:
|
device over TCP/IP:
|
||||||
|
|
||||||
1. Connect the device to the same Wi-Fi as your computer.
|
1. Plug the device into a USB port on your computer.
|
||||||
2. Get your device IP address, in Settings → About phone → Status, or by
|
2. Connect the device to the same Wi-Fi network as your computer.
|
||||||
|
3. Get your device IP address, in Settings → About phone → Status, or by
|
||||||
executing this command:
|
executing this command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
adb shell ip route | awk '{print $9}'
|
adb shell ip route | awk '{print $9}'
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Enable adb over TCP/IP on your device: `adb tcpip 5555`.
|
4. Enable adb over TCP/IP on your device: `adb tcpip 5555`.
|
||||||
4. Unplug your device.
|
5. Unplug your device.
|
||||||
5. Connect to your device: `adb connect DEVICE_IP:5555` _(replace `DEVICE_IP`)_.
|
6. Connect to your device: `adb connect DEVICE_IP:5555` _(replace `DEVICE_IP`
|
||||||
6. Run `scrcpy` as usual.
|
with the device IP address you found)_.
|
||||||
|
7. Run `scrcpy` as usual.
|
||||||
|
|
||||||
|
Since Android 11, a [Wireless debugging option][adb-wireless] allows to bypass
|
||||||
|
having to physically connect your device directly to your computer.
|
||||||
|
|
||||||
|
[adb-wireless]: https://developer.android.com/studio/command-line/adb#connect-to-a-device-over-wi-fi-android-11+
|
||||||
|
|
||||||
|
If the connection randomly drops, run your `scrcpy` command to reconnect. If it
|
||||||
|
says there are no devices/emulators found, try running `adb connect
|
||||||
|
DEVICE_IP:5555` again, and then `scrcpy` as usual. If it still says there are
|
||||||
|
none found, try running `adb disconnect` and then run those two commands again.
|
||||||
|
|
||||||
It may be useful to decrease the bit-rate and the definition:
|
It may be useful to decrease the bit-rate and the definition:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user