Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # Copyright 2015 The Chromium Authors. All rights reserved. | 2 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 if [[ $# -ne 1 && $# -ne 2 ]]; then | 6 if [[ $# -ne 1 && $# -ne 2 ]]; then |
| 7 cat <<'EOF' | 7 cat <<'EOF' |
| 8 Usage: remote_adb_setup REMOTE_HOST [REMOTE_ADB] | 8 Usage: remote_adb_setup REMOTE_HOST [REMOTE_ADB] |
| 9 | 9 |
| 10 Configures adb on a remote machine to communicate with a device attached to the | 10 Configures adb on a remote machine to communicate with a device attached to the |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 39 # Start the adb server locally. | 39 # Start the adb server locally. |
| 40 adb start-server | 40 adb start-server |
| 41 | 41 |
| 42 # Forward various ports from the remote host to the local host: | 42 # Forward various ports from the remote host to the local host: |
| 43 # 5037: adb | 43 # 5037: adb |
| 44 # and from the local host to the remote host: | 44 # and from the local host to the remote host: |
| 45 # 8181: Flutter observatory | 45 # 8181: Flutter observatory |
| 46 # 9998: http server for Flutter | 46 # 9998: http server for Flutter |
| 47 # 31839: http server for https://core.mojoapps.io | 47 # 31839: http server for https://core.mojoapps.io |
| 48 # 31840: http server for the local mojo: origin | 48 # 31840: http server for the local mojo: origin |
| 49 # 31841: http server for base mappings | 49 # 31841: http server for base mappings |
|
ppi
2015/12/15 21:24:30
nit: maybe just 31841-31842: http servers for orig
tonyg
2015/12/15 21:28:01
Done.
| |
| 50 # 31842: http server for additional mappings | |
| 50 ssh -C \ | 51 ssh -C \ |
| 51 -R 5037:127.0.0.1:5037 \ | 52 -R 5037:127.0.0.1:5037 \ |
| 52 -L 8181:127.0.0.1:8181 \ | 53 -L 8181:127.0.0.1:8181 \ |
| 53 -L 9998:127.0.0.1:9998 \ | 54 -L 9998:127.0.0.1:9998 \ |
| 54 -L 31839:127.0.0.1:31839 \ | 55 -L 31839:127.0.0.1:31839 \ |
| 55 -L 31840:127.0.0.1:31840 \ | 56 -L 31840:127.0.0.1:31840 \ |
| 56 -L 31841:127.0.0.1:31841 \ | 57 -L 31841:127.0.0.1:31841 \ |
| 58 -L 31842:127.0.0.1:31842 \ | |
| 57 "$remote_host" | 59 "$remote_host" |
| OLD | NEW |