Endpoints
Both endpoints are scoped to a device and a target port on the device. WebSocket tunnel — binary frames are forwarded to and from the device TCP port:Authentication
Pass your Mobilerun API key as a request header:Requirements
- The device must be in the
readystate. See Devices for state details. - The target service must be listening on the chosen TCP port on the device.
- You need a Mobilerun API key.
HTTP reverse proxy
Send any HTTP request to the device. Method, path, query string, headers (minus auth), and body are preserved. Redirects are not followed — you receive the device’s response as-is.GET /api/status on its local port 8080.
Request bodies are capped at 10 MB. Larger payloads are rejected before they reach the device.
WebSocket tunnel
Open a WebSocket and exchange binary frames with the device port. Each frame is written to the underlying TCP connection in order; bytes coming back from the device are delivered as binary frames.Individual WebSocket frames are capped at 10 MB. Chunk larger payloads across multiple frames.
Blocked ports
Forwarding to ports used by Mobilerun’s own on-device agents is denied with403 Forbidden. The default blocklist covers adb, the device streaming bridge, the agent runtime, and the Frida server. Requests to other ports are passed through.
Limitations
- TCP only. UDP services are not exposed.
- Ready devices only. Requests against devices in other states return an error before the tunnel is opened.
- No redirect following. The HTTP proxy returns the device’s
3xxresponse so your client can decide what to do.