p2p_enable
Back to commands
Command

p2p_enable

Sets your P2P mode. When P2P (peer-to-peer) is enabled, you connect directly to other players, resulting in a faster connection with lower latency (better ping). However, this also exposes your IP address to others. When P2P is disabled, connections are routed through a server, leading to higher latency (worse ping) but offering a more secure connection where your IP address remains protected. Default: 1 Range: 0 - 1

1 usage 3 examples

Description

Sets your P2P mode.

When P2P (peer-to-peer) is enabled, you connect directly to other players, resulting in a faster connection with lower latency (better ping).
However, this also exposes your IP address to others.

When P2P is disabled, connections are routed through a server, leading to higher latency (worse ping) but offering a more secure connection where your IP address remains protected.

Default: 1
Range: 0 - 1

Usages

p2p_enable <number>

Examples

p2p_enable — Shows your current P2P mode
p2p_enable 0 — Disables P2P
p2p_enable 1 — Enables P2P