Skip to content

Commit

Permalink
Reorder documentation
Browse files Browse the repository at this point in the history
Present the --tcpip option without arguments first.
  • Loading branch information
rom1v committed Mar 11, 2024
1 parent 7f23ff3 commit 79968a0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions doc/connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,6 @@ computer.
An option `--tcpip` allows to configure the connection automatically. There are
two variants.

If the device (accessible at 192.168.1.1 in this example) already listens on a
port (typically 5555) for incoming _adb_ connections, then run:

```bash
scrcpy --tcpip=192.168.1.1 # default port is 5555
scrcpy --tcpip=192.168.1.1:5555
```

If _adb_ TCP/IP mode is disabled on the device (or if you don't know the IP
address), connect the device over USB, then run:

Expand All @@ -85,6 +77,14 @@ scrcpy --tcpip # without arguments
It will automatically find the device IP address and adb port, enable TCP/IP
mode if necessary, then connect to the device before starting.

If the device (accessible at 192.168.1.1 in this example) already listens on a
port (typically 5555) for incoming _adb_ connections, then run:

```bash
scrcpy --tcpip=192.168.1.1 # default port is 5555
scrcpy --tcpip=192.168.1.1:5555
```


### Manual

Expand Down

0 comments on commit 79968a0

Please sign in to comment.