Skip to content
/SLASHPLAY

How to set network encryption on a Rust server

Type server.encryption 2 in the server console to keep network encryption on, the recommended setting. 0 turns it off.

server.encryption

Sets network encryption: 2 is on (recommended), 0 is off.

server.encryption <0|2>

Examples

server.encryption 2

Default, encryption on.

Values

ValueWhat it does
2Default Encryption enabled (recommended)
0 Encryption disabled

Arguments

modeRequired
2 = enabled, 0 = disabled.

What it does

Leave it at 2. Turning encryption off is only meant for testing.

The game's own description: Network encryption mode; 2 = enabled (recommended), 0 = disabled

Run it on your server

Type it in the server console or send it over RCON; admins can also use the F1 console in game. To keep a setting, run server.writecfg after changing it, or put it on the launch line as +name value.

Your own
game server.

CS2, Minecraft, Palworld and more, from $0.03 an hour.