How to set a password on a Valheim server
Add -password "Secret123" to the server's launch options, and players must enter it to join.
-password
Sets the password players must enter to join the server.
-password <password> Examples
-password "Secret123" Password protected server.
Arguments
passwordRequired- The join password.
What it does
Players are asked for this password when they connect.
Good to know
- Add it to the server start line in
start_server.sh(Linux) orstart_headless_server.bat(Windows); it applies on the next server start. - The server refuses to start if the password is shorter than 5 characters or appears in the server name.
Run it on your server
Launch options go on the server's start line. Admin commands are typed in the in-game console (F5) by a player on the admin list. New to this? Start a Valheim server first.
Your own
Valheim server.
From $0.03 an hour, only while it runs. New accounts get 6 free tokens.