How to set a Valheim server password
By default, your Valheim server is open to the public. You can change this by setting a password. This guide will show you how to do that in a few simple steps.
Setting a password
- Start your server
- Pause your server
- Open your server's files
- Edit the
gameserver/valheim_config
file - Find the line saying
-password "squadnox"
- Replace
squadnox
with a password that is at least 5 characters long! - Save the file
- Restart your server
Example config file
Here is an example of how your valheim_config
file could look like:
-name "Free Squadnox server"
-password "YourSuperSecurePassword"
-port 2456
-world "Dedicated"
-crossplay