Protocol Reference

Complete reference for the Exposr protocol.

Overview

Exposr uses a simple text-based protocol. Messages are sent as UTF-8 text, one per line, terminated by a newline character.

Control channel messages

Sent over the persistent connection to port 9000.

MessageDirectionDescription
<token>Agent → ServerAuthentication token (sent on connect)
REGISTER <port>Agent → ServerRequest a public port for the tunnel
CONNECT <uuid>Server → AgentNotify agent of an incoming public connection

Data channel messages

Sent over per-connection TCP connections to port 9001.

MessageDirectionDescription
DATA <uuid>Agent → ServerIdentify data connection (first message only)

After the identification message, the connection becomes a raw TCP pipe. All subsequent bytes are forwarded directly between the public client and the local service.

Default ports

text
Control channel:    9000
Data channel:       9001
Default public:     25565
Fallback range:     20000-30000