Files
cheatsheet-tldr/tldr/adb-forward
2024-12-27 00:17:30 +00:00

26 lines
470 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# 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`