reverse_port
Forwards a port on an Android device to a local host, enabling reverse socket connections. Essential for React Native bundler tcp:8081.
Instructions
Reverse socket connections from a port on the device to a port on the local host (critical for React Native bundler reverse tcp:8081).
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": {
"remote": "<remote>",
"local": "<local>"
},
"name": "reverse_port"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| local | Yes | Local host socket specification (e.g. 'tcp:8081') | |
| remote | Yes | Remote device socket specification (e.g. 'tcp:8081') | |
| serial | No | Specific device serial number | |
| noRebind | No | Fail if the remote socket is already bound (--no-rebind flag) |