Skip to main content

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 IDp2p_client_transport
Selected byapp_transport = "p2p_client_transport"
PlatformsLinux, Windows, Android
LicensePremium

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.
SettingKeyTypeDefaultNotes
Remote Endpoint IDp2p_client_transport_endpoint_idText""Required
Passwordp2p_client_transport_passwordText""Required
Connection Timeout (ms)p2p_client_transport_timeoutInteger (with presets)15000Required
Relay URLp2p_client_transport_relay_urlText (with presets)""

Setting details​

Connection Timeout (ms)​

Presets (any other value can be entered):

ValueLabel
50005s
1500015s
3000030s
6000060s

Relay URL​

Presets (any other value can be entered):

ValueLabel
"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": ""
}
}