mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-15 20:00:09 +00:00
Update cheatsheets
This commit is contained in:
@@ -5,13 +5,17 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# adb forward
|
||||
|
||||
> Connect to an Android device wirelessly.
|
||||
> Forward socket connections to a connected Android device or emulator.
|
||||
> More information: <https://developer.android.com/tools/adb>.
|
||||
|
||||
- Forward a TCP port:
|
||||
- Forward a TCP port to the only connected emulator or device:
|
||||
|
||||
`adb forward tcp:{{local_port}} tcp:{{remote_port}}`
|
||||
|
||||
- Forward a TCP port to a specific emulator or device (by device ID / [s]erial number):
|
||||
|
||||
`adb -s {{device_ID}} forward tcp:{{local_port}} tcp:{{remote_port}}`
|
||||
|
||||
- List all forwardings:
|
||||
|
||||
`adb forward --list`
|
||||
|
||||
Reference in New Issue
Block a user