mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-29 23:24:55 +02:00
21 lines
377 B
Markdown
21 lines
377 B
Markdown
![]() |
# adb forward
|
||
|
|
||
|
> Connect to an Android device wirelessly.
|
||
|
> More information: <https://developer.android.com/tools/adb>.
|
||
|
|
||
|
- Forward a TCP port:
|
||
|
|
||
|
`adb forward tcp:{{local_port}} tcp:{{remote_port}}`
|
||
|
|
||
|
- List all forwardings:
|
||
|
|
||
|
`adb forward --list`
|
||
|
|
||
|
- Remove a forwarding rule:
|
||
|
|
||
|
`adb forward --remove tcp:{{local_port}}`
|
||
|
|
||
|
- Remove all forwarding rules:
|
||
|
|
||
|
`adb forward --remove-all`
|