01
The server does not start
Iron Gate's official guide gives the sign of a successful start: the server is ready to accept players when it shows Game server connected. As long as this line does not appear, look for the cause in the log (journalctl -u valheim if the server runs as a service, or the file passed with -logFile).
The log shows Game server connected error. According to the official wiki, the server cannot reach Steam's servers. It needs working Internet access and DNS, and outbound IPv4: it does not work on an IPv6-only network. Check name resolution and the machine's outbound firewall:
getent ahostsv4 hl2master.steampowered.com
curl -4 -sI https://store.steampowered.com | head -n 1
The server stops right away on Linux. A library is usually missing. The official guide requires the libatomic1, libpulse-dev and libpulse0 packages, and at least GLIBC_2.29 and GLIBCXX_3.4.26:
sudo apt install -y libatomic1 libpulse-dev libpulse0
ldd --version
On a system that is too old, the guide suggests the docker_start_server.sh script shipped with the server. If it answers Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?, the Docker service is stopped; if it answers Got permission denied while trying to connect to the Docker daemon socket, the user running the server must be added to the docker group.
The password is rejected at launch. The official wiki sets a minimum of 5 characters for -password. Choose a longer password, different from the server name. The guide create a Valheim server covers every launch parameter.
02
Players cannot connect
A version error. According to the official wiki, if the dedicated server version does not match the game version, players cannot connect. Since version 0.214.2, the game shows this right in the server list, without loading the game. After every Valheim update, stop the server and update it (app 896660):
sudo systemctl stop valheim
sudo -iu valheim /usr/games/steamcmd +force_install_dir /opt/valheim/serveur +login anonymous +app_update 896660 validate +quit
sudo systemctl start valheim
Nobody can get in. It all depends on the chosen mode:
- Without
-crossplay (connection through Steam): the server uses the port set with -port and the next one, 2456 and 2457 in UDP by default. Both must be open in the firewall: see game server ports. Only Steam players can see this server.
- With
-crossplay: the server goes through a relay and needs no open ports. Players join it with its join code (shown in the pause menu), with the public IP address and port, or from the server list, but never with a local address.
- The
DNS Lookup failed message appears when a server added by domain name cannot be resolved. Check the DNS record, or give the IP address. In crossplay, the name must point exactly to the server's public IPv4 address.
- Several servers on the same machine: each server takes two ports, so space them two apart (2456, 2458…). If several crossplay servers keep the same port, give each one a different
-instanceid value, so that each gets its own ID from the crossplay service.
One specific player is rejected. Check the lists in the save folder:
- as soon as one ID is in
permittedlist.txt, everyone else is rejected;
- each line holds a single ID in the
Platform_ID format, case-sensitive (for example Steam_ followed by the SteamID64 digits), with no spaces or comments. The ID appears in the server log when the player connects, or in the in-game F2 panel. Hotfix 1.0.12 restored support for old IDs (such as Steam_123456789) alongside new ones (such as V_123456789): keep the server up to date;
- Valheim is designed for 1 to 10 players, according to the official 1.0 FAQ: beyond that, the game reports that the server is full.
The commands to kick, ban or unban a player are in the guide Valheim admin commands.
03
Lag and desync
The Valheim dedicated server does not simulate the game itself: according to the official wiki, it relays traffic and keeps the world data, while each area is simulated by the game of one of the players there. Two causes of lag follow from this:
- The player simulating the area is too slow: busy computer, weak connection. Everyone then sees chests and doors responding late. The wiki suggests letting a player with a capable machine enter the area first, or asking the player in question to leave the area and come back.
- World saving: while it copies the world in memory, the server pauses traffic. The log then shows a
World saved line with the duration in milliseconds. If the stutters match these lines exactly, saving is the cause. The interval is set with -saveinterval (1800 seconds by default); a fast CPU and fast memory shorten the pause.
A player whose game no longer matches the others' (objects in different places) is desynced: they should reconnect. If everyone drops at the same time while the server keeps running, look at the network: see protecting a game server from DDoS attacks.
04
Lost progress, damaged world and mods
Progress rolled back after a restart. The server was killed instead of stopped. The official wiki is clear: send a SIGINT or SIGTERM signal (the equivalent of Ctrl+C) and give the server time to save. In a systemd service:
KillSignal=SIGINT
TimeoutStopSec=60
Whatever was not saved before a hard stop cannot be recovered.
The server stops while loading the world. Since version 0.210.6, a dedicated server shuts down if the world is corrupt, instead of overwriting it. The server keeps automatic copies, set with -backups (4 by default: one copy at 2 hours, then copies 12 hours apart), -backupshort and -backuplong. Stop the server, set the current world files aside, then put a healthy copy in their place. Since version 1.0, a world is saved in several chunks: always copy together all the files bearing its name, in worlds_local (~/.config/unity3d/IronGate/Valheim/worlds_local by default, or the -savedir folder). Also keep copies off the machine.
The server crashes after a game update. For the game, the official wiki blames almost all crashes on mods, especially those not yet updated: it is also the first lead for a server. Valheim has no official mod support, and Iron Gate warns that no mod is guaranteed to work after an update. Start the server without BepInEx (with start_server.sh instead of start_server_bepinex.sh): if it starts, wait for the mods to be updated or remove them one by one. The guide mods on a Valheim server covers installation.
05
On CloudFive
CloudFive has no ready-made Valheim plan: the server is installed on a VPS, and this guide applies as is. The gaming VPS, from €5.99 per month, is well suited:
- an AMD Ryzen 9 9950X, with DDR5 memory and NVMe storage, which shortens world save pauses;
- root access and a dedicated IPv4 address, to open ports 2456-2457 or switch to crossplay without changing anything on the network;
- basic anti-DDoS protection included. A game-specific filter is part of Premium Protection, a paid option.
The servers are in France, on our own network, monthly with no commitment, with support in French 7 days a week, by ticket, on Discord and by phone.
06
Frequently asked questions
What does "Game server connected error" mean on Valheim?
According to the official wiki, the server cannot reach Steam's servers. Check that the machine has IPv4 Internet access and working DNS, and that its firewall does not block outbound connections.
Why can players no longer join my Valheim server after an update?
The server no longer has the same version as the players' game, and Valheim then refuses the connection. Stop the server, update it with SteamCMD (app 896660), then start it again.
Which ports should I open for a Valheim server?
The port set with -port and the next one, so 2456 and 2457 in UDP by default. With -crossplay, the server goes through a relay and needs no open ports, but it cannot be joined with a local address.
How do I avoid losing progress on a Valheim server?
Always stop the server with Ctrl+C or a SIGINT or SIGTERM signal, never by killing the process: it saves the world before shutting down. Also keep the automatic copies set with -backups and copies of the worlds_local folder off the machine.
Why does my Valheim server crash since the last update?
Most often, a mod is not yet compatible with the new version. Start the server without BepInEx: if it starts, wait for the mods to be updated or remove them one by one to find the one that blocks.