Reverse a device port to the host
reverse_portCreate an ADB reverse socket connection to let device-side apps or scripts reach a server running on your host machine.
Instructions
Create a reverse socket connection (adb reverse): the device listens on the remote spec and connections are forwarded to the local spec on the host machine. Use it to let device-side code (app under test, on-device scripts) reach a server running on your machine.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| local | Yes | Host-side target spec, e.g. "tcp:8080". | |
| device | No | Device serial from list_devices; optional when exactly one device is connected. | |
| remote | Yes | Device-side listen spec, e.g. "tcp:8080". | |
| no_rebind | No | Pass --no-rebind to fail instead of replacing an existing reverse (default false). |