Remove a reverse port forward
remove_reverseRemoves a reverse socket connection from an Android device, undoing a reverse_port mapping so the specified device-side remote no longer forwards to the host.
Instructions
Remove a reverse socket connection created with reverse_port (adb reverse --remove <remote>).
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>"
},
"name": "remove_reverse"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| device | No | Device serial from list_devices; optional when exactly one device is connected. | |
| remote | Yes | Device-side spec previously passed to reverse_port, e.g. "tcp:8080". |