P2P Client Transport
Dials a P2P Server on another machine by its Endpoint ID, over an encrypted peer-to-peer link (QUIC, end-to-end encrypted). The link is direct when hole punching succeeds and goes through a relay otherwise, so neither side needs a public IP or port forwarding. Once connected, it carries a byte stream like a TCP Client; choose the codec that matches the data the server side sends.
Fill in:
- Remote Endpoint ID: the server's public key, from the server operator;
- Password: the password set on the server.
Relay URL can stay empty to use the default relays. If the server is set to specific relays, use the same ones here.
To work on a remote CycBox engine itself (its connections, scripts and dashboards) rather than a data link, use remote debugging.
Configuration reference
| Config ID | p2p_client_transport |
| Selected by | app_transport = "p2p_client_transport" |
| Platforms | Linux, Windows, Android |
| License | Premium |
Peer-to-peer QUIC transport dialling a remote endpoint
Connection Configuration:
- Remote Endpoint ID: The remote peer's public key (base32-hex). The server operator must share their endpoint id with the client.
- Password: Required pre-shared secret. Both peers must match; otherwise the connection is rejected. Empty passwords are not accepted.
- Timeout: Dial timeout in milliseconds.
- Relay URL: Leave empty to use the default relays (cn + us), or paste one or more relay URLs separated by commas or whitespace.
Operating Mode:
- Each connection spins up a dedicated p2p Endpoint, torn down on disconnect.
- Uses a p2p QUIC bidi stream; hole punching is attempted automatically and falls back to relay forwarding.
| Setting | Key | Type | Default | Notes |
|---|---|---|---|---|
| Remote Endpoint ID | p2p_client_transport_endpoint_id | Text | "" | Required |
| Password | p2p_client_transport_password | Text | "" | Required |
| Connection Timeout (ms) | p2p_client_transport_timeout | Integer (with presets) | 15000 | Required |
| Relay URL | p2p_client_transport_relay_url | Text (with presets) | "" |
Setting details
Connection Timeout (ms)
Presets (any other value can be entered):
| Value | Label |
|---|---|
5000 | 5s |
15000 | 15s |
30000 | 30s |
60000 | 60s |
Relay URL
Presets (any other value can be entered):
| Value | Label |
|---|---|
"https://us.cycbox.io/" | US |
"https://eu.cycbox.io/" | EU |
"https://cn.cycbox.com/" | CN |
Example config
Default values as they appear in a saved configuration (for example the JSON block at the end of a cycbox/examples/*.lua file). Settings detected at runtime are omitted.
{
"app": {
"app_transport": "p2p_client_transport"
},
"p2p_client_transport": {
"p2p_client_transport_endpoint_id": "",
"p2p_client_transport_password": "",
"p2p_client_transport_timeout": 15000,
"p2p_client_transport_relay_url": ""
}
}