forward_port
Forwards socket connections from a local host port to a port on a connected Android device, enabling access to device services via localhost.
Instructions
Forward socket connections from a local host port to a port on the connected device.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"local": "<local>",
"remote": "<remote>"
},
"name": "forward_port"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| local | Yes | Local host socket specification (e.g. 'tcp:8080') | |
| remote | Yes | Remote device socket specification (e.g. 'tcp:8080') | |
| serial | No | Specific device serial number | |
| noRebind | No | Fail if the local socket is already bound (--no-rebind flag) |