
A Valheim world should not depend on one player leaving a gaming PC switched on. Hosting it on an XLC dedicated server separates the game session from a personal computer and gives the administrator control over the operating system, network access and world files. Friends can connect while the host player is offline, provided the server remains running and reachable.
The deployment below uses a Linux server with SSH access. Our role is to provide the dedicated infrastructure; installing Valheim, maintaining its software and protecting the world remain part of your server administration unless a separate service arrangement says otherwise. Start with an unmodded world, verify connectivity, then add automation or modifications once the baseline works.
Key Takeaways
- Choose an XLC location around your players and size the game workload around CPU responsiveness, available RAM and storage headroom, rather than GPU specifications.
- Install the dedicated-server application under its own Linux account, keep customised startup settings separate from the supplied script, and store world data in a known directory.
- Use the Steam or crossplay connection method deliberately, test from outside the server network, and make an off-server backup before inviting players or applying updates.
1. Choose the XLC server around the world you want to run
For a small, unmodded deployment, reserve around four modern CPU cores and 8 GB of RAM for the game workload as an initial planning allocation, not an official minimum or a guaranteed player capacity. This is a workload allocation within the host, not a published XLC plan. Measure actual use as the world grows. More cores help when you run several worlds, but do not assume that doubling the core count doubles one world’s performance. Our guide to choosing CPU core count for dedicated servers explains that distinction.
Choose SSD or NVMe storage and leave room for world growth, logs, software updates and retained backups. A headless Valheim process does not need a gaming GPU. For one small group, a smaller virtual or managed-game service may be more economical; dedicated hardware becomes more relevant when you need exclusive resources, several isolated instances or other services on the same host.
Our Hong Kong, Tokyo and Los Angeles locations let you place the host nearer the group. Test candidate routes from the players’ usual connections, especially during evening sessions. Our article on low-latency networking in bare metal hosting explains why routing and distance still matter even when the hardware is dedicated. Crossplay relay routing may differ from a direct Steam connection, so test the backend you intend to use.
2. Prepare Linux and a separate game account
Select a supported 64-bit Linux installation, such as Ubuntu LTS, when arranging your XLC server. We provide administrative access after OS installation. If using the client panel’s OS reinstall option on an existing server, back up its data first: reinstalling erases data. For a new empty server, confirm the installed OS and public IP, then connect over SSH with the credentials provided.
Apply OS updates and install SteamCMD using the instructions for your distribution, including its required compatibility libraries. Keep SSH restricted to trusted administration addresses where practical. Install the Valheim runtime dependencies listed in the official dedicated-server guide; on a compatible Ubuntu installation, the additional packages include libatomic1, libpulse0 and libpulse-dev.
Create a non-root account so the game does not run with system-wide privileges. The following commands assume an administrator with sudo access. The account and paths are examples that you can adapt consistently.
sudo adduser --disabled-password --gecos "" valheim sudo -iu valheim mkdir -p /home/valheim/server /home/valheim/data3. Install Valheim and keep the startup settings separate
From the valheim account, use SteamCMD to install the dedicated-server application. The example assumes steamcmd is available on the command path; otherwise use the full path to your installed SteamCMD launcher. Application 896660 is the dedicated-server package, not the player client.
steamcmd +force_install_dir /home/valheim/server \ +login anonymous +app_update 896660 validate +quitOnce installation completes, copy the supplied Linux startup script and edit the copy. Retain its environment setup and library-path commands; change the game launch arguments rather than replacing the entire script. On Windows, the equivalent supplied file is start_headless_server.bat, available with the server tool through Steam Library → Tools.
cd /home/valheim/server cp start_server.sh start_xlc.sh nano start_xlc.shUse the following launch arguments in the copied Linux script. Replace the password before use. The server name is what players see, while the world name identifies the saved world. Keeping a separate data directory makes backup and migration less dependent on the installation folder.
./valheim_server.x86_64 -name "XLC Valheim" \ -port 2456 -world "NorthHarbor" \ -password "REPLACE-WITH-A-PRIVATE-PASSWORD" \ -public 0 -savedir "/home/valheim/data"Protect the script because it contains the game password, then run it from the installation directory. Start interactively for the first test so you can inspect errors rather than hiding the output in the background.
chmod 700 start_xlc.sh ./start_xlc.sh4. Match XLC network rules to Steam or crossplay
For the Steam backend, allow inbound UDP 2456–2457 through the host firewall and any upstream rules. If the allocated public address is directly routed to the server, there is no home-router port-forwarding step; if NAT is involved, map those ports to the game host. Do not disable the firewall to make a connection test pass.
On an Ubuntu host already using UFW, an administrator can add the rule below in a separate SSH session. Do not enable or reset a firewall remotely without first preserving SSH access. Restrict other services independently; opening game ports is not a reason to expose database or management interfaces.
sudo ufw allow 2456:2457/udpAdd -crossplay to use the PlayFab backend for supported cross-platform players. It uses a relay and does not require inbound router port forwarding, although outbound connectivity must work. Join using the join code, server list or public IP and port; crossplay does not support joining through a local or loopback IP. The -public 0 setting hides the listing, but does not replace a password or access controls.
Check with us which DDoS protection and UDP traffic policies apply to the selected XLC service before launch. A local firewall controls access but cannot stop an upstream link from being overwhelmed. Confirm the service scope rather than assuming every plan has identical mitigation or a guarantee against every attack.
5. Test the first connection before making the server unattended
Use ss -lun from a second shell to inspect UDP listeners, then make a real connection from a player on an external network. A successful SSH login proves only that the management path works. A TCP-only port checker cannot establish whether the Valheim UDP session is usable.
If joining fails, check the server log, client/server versions, password, selected backend and firewall path in that order. If an expected world is missing, verify the world name, data directory and account ownership before creating or overwriting files. Test new installations without mods first, so mod compatibility does not obscure a network or runtime problem.
After that first successful join, configure a persistent session or a service manager. For a 24/7 Linux deployment, use systemd with User=valheim, WorkingDirectory=/home/valheim/server and ExecStart=/bin/bash /home/valheim/server/start_xlc.sh. Configure a graceful stop signal and enough shutdown time for saves; test a stop and restart before enabling automatic startup. A foreground SSH session alone is not a reliable reboot or recovery strategy.
6. Protect saves and schedule updates around play sessions
Stop the server gracefully with Ctrl+C for the initial manual deployment and wait for it to exit before copying the data directory. Retain the matching world .db and .fwl files together, permissions files and your startup configuration. Copy backups off the game host and test restoration into a separate directory, with the original world left untouched.
In-game automatic backups on the same disk are useful, but do not protect against losing that disk or reinstalling the host. XLC does not include complimentary backup services by default. Arrange your own off-server copies or contact us about available backup options; hardware isolation is not a substitute for a recoverable save.
Before an update, notify players, stop the process and take a backup. Run the same SteamCMD update command under the game account, review the supplied startup script for changes, then restart your customised copy and test a join. Keep the client and server on compatible release branches. Avoid updating binaries while the game process is still running.
7. Monitor the game workload on your dedicated host
Track per-core CPU use, memory consumption, disk space, storage latency and network loss during real sessions. Compare a quiet world with busy building areas and a save operation. Low average CPU utilisation does not rule out a busy individual core, and a slow client can still affect the experience even when the host has spare resources.
Our bare metal infrastructure removes contention from unrelated tenants, as explained in our article on how bare metal reduces noisy-neighbour issues. You still need to control your own co-located workloads. Schedule large backup uploads outside play sessions and keep capacity available for the operating system rather than allocating every resource to game processes.
FAQ
Can a Valheim server run without the original host player online?
Yes. The dedicated-server process runs separately from the player client. Players can join while that person is offline, but the server process, operating system and network still need to remain available.
Does a private world need a whole dedicated machine?
Not necessarily. One small group may be served more economically by a smaller hosting option. XLC dedicated infrastructure is worth evaluating when exclusive resources, several worlds or broader administration requirements justify the host.
Can additional XLC hardware increase the normal player cap?
No. Valheim’s standard server cap is 10 concurrent players. More hardware can provide resource headroom; it does not change the game’s standard limit. Modified limits are outside this unmodded setup.
Does XLC automatically install Valheim and back up the world?
Do not assume those tasks are included with a dedicated-server order. We provide the hosting infrastructure and administrative access. Confirm any separate installation, application-management or backup arrangement with us before relying on it.
Conclusion
A working Valheim deployment needs more than an installed executable. Choose hardware and location around the group, separate installation files from world data, configure the correct connection backend and verify recovery before the world becomes valuable. These are administration tasks you can control directly on a dedicated host.
Our dedicated game server infrastructure gives you a single-tenant platform for this deployment. Tell us where your players connect from, how many worlds you intend to run and what operating system you prefer. We can help you assess the server configuration and network options, while you retain control over Valheim settings, updates and the world itself.


