forward_port
Map a host TCP port to a device TCP port so traffic sent locally reaches the Android device. Use to expose device services to your host machine.
Instructions
adb forward tcp:local tcp:remote — forward a HOST port to a DEVICE port
(host connects locally, traffic reaches the device).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | ||
| local_port | Yes | ||
| remote_port | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||