Skip to content

Commit

Permalink
Document shell command to get the device IP
Browse files Browse the repository at this point in the history
PR #1944 <#1944>

Signed-off-by: Romain Vimont <[email protected]>
  • Loading branch information
ThePredators authored and rom1v committed Dec 10, 2020
1 parent 25aff00 commit 47c8971
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,13 @@ _Scrcpy_ uses `adb` to communicate with the device, and `adb` can [connect] to a
device over TCP/IP:

1. Connect the device to the same Wi-Fi as your computer.
2. Get your device IP address (in Settings → About phone → Status).
2. Get your device IP address, in Settings → About phone → Status, or by
executing this command:

```bash
adb shell ip route | awk '{print $9}'
```

3. Enable adb over TCP/IP on your device: `adb tcpip 5555`.
4. Unplug your device.
5. Connect to your device: `adb connect DEVICE_IP:5555` _(replace `DEVICE_IP`)_.
Expand Down

0 comments on commit 47c8971

Please sign in to comment.