How to host a Valheim server
A Valheim server is easy to start and easy to break by accident. Here is what it needs, how to set it up, how your friends join, and the one world-name trap to avoid.
What Valheim needs
Valheim is hungrier than it looks. It idles near 3 GB and likes two fast cores, so a PingByte Valheim server starts at 4 GB of RAM and 2 vCPU, and a world with many builds can use more. Players need Valheim on Steam, or on Game Pass if you turn crossplay on.
Set it up
- Open the store and choose Valheim.
- Pick a size, then name the world and set a join password. The password must be at least 5 characters, and it cannot appear inside the server name or the world name.
- Choose whether to turn on crossplay for Xbox and Game Pass players, and whether to list the server in Valheim's community browser.
- Review and pay. The server starts as soon as the payment clears.
Give the first start a few minutes. A new server downloads the game server files (about 2 GB) and then loads the world, and nobody can join until the console shows the world has loaded.
Join the server
- Copy the address and port from your server's Overview tab. It looks like
play.pingbyte.net:PORT, and the port is different for every server. - In Valheim choose Join Game, then Join by IP, and enter the address with the port and the password.
You do not need the server list to play. The community list is the least reliable way to find a server, so give your friends the address instead. A Valheim server uses three consecutive UDP ports, which is why its port is never a round number. PingByte handles that for you.
Crossplay
If some of your players are on Xbox or the Microsoft Store version, turn on crossplay in Settings. Those players connect with a join code shown in the server log, while Steam players can still join by IP. Without crossplay only the Steam version can join. Changing the setting restarts the server.
Your world, backups and moving a world in
Valheim finds your world by its name. A world is a pair of files, YourWorld.db and YourWorld.fwl, and the server loads the one that matches the world name in its settings. If the name does not match an existing save, Valheim creates a brand-new world with that name. Your old world is not deleted, it just is not the one loaded. Almost every "my world disappeared" report is a changed or mistyped name, so leave the world name alone unless you mean to switch.
- Bring your own world: take a backup first, upload both files to
config/worlds_localin the Files tab, then set the world name in Settings to the file name without the extension, with the same capital letters. A.dbwithout its.fwlwill not load. - Backups: make them whenever you like or schedule them, from every 6 hours up to weekly. Up to 5 are kept and the oldest is dropped automatically. Backups hold your world and settings, not the downloaded game files.
- Start over on purpose: the Wipe world card takes a safety backup first, then deletes the world files.
Updates
Valheim updates often, and the client and server have to match. The server checks for updates on its own about every 15 minutes. If your players have just updated and cannot join, give it a few minutes, then restart the server from the Overview tab.
If something goes wrong
- Can't connect to your Valheim server? A checklist from most to least likely.
- Change the password, upload your world, restore a backup.
- Server not showing in the server list.
Valheim is a trademark of Iron Gate AB. PingByte is not affiliated with or endorsed by them.
Want a Valheim server without the setup?
See Valheim hosting
PingByte