Skip to content
Back to blog

Magichosting

Setting up a Valheim server: upload your world, password and crossplay

E
Elias Bieber
Estimated reading time: 2 min

Startup parameters, ports, uploading your own world, admins and backups: how to set up a Valheim server for your group – including crossplay for Xbox players.

ValheimGame serverCrossplayWorldMods

The short answer

For your own Valheim server you set a server name, world name and password, open UDP ports 2456 and 2457 and, if needed, upload your existing world – two files ending in .db and .fwl. With -crossplay, friends on Xbox or Game Pass can join too.

You can get a Valheim server with panel, file manager and backups under Valheim server hosting; all available games are listed under game server hosting.

The key startup parameters

ParameterMeaning
-name "My Server"Name in the server list
-world "Midgard"World name (file name without extension)
-password "secret"at least 5 characters, must not appear in the server name
-port 2456Game port (UDP); the next port is used as well
-public 11 = visible in the community list, 0 = direct connect only
-crossplayEnable crossplay with Xbox and Game Pass

In the panel you set these values in the startup section. On your own root server you pass them to the dedicated server's start script.

Upload your own world

  1. On your PC, open the folder %USERPROFILE%\AppData\LocalLow\IronGate\Valheim\worlds_local.
  2. Copy the two files of your world, e.g. Midgard.db and Midgard.fwl.
  3. Stop the server and upload both files to the server's worlds_local folder via file manager or SFTP.
  4. Set the -world parameter to exactly that name and start the server.

Admins, backups and mods

  • Admins: Add the admins' SteamID64 line by line to adminlist.txt. They open the console in game with F5.
  • Backups: The server saves regularly and keeps several backups. Controlled via -saveinterval (seconds) and -backups (count).
  • Mods: Most mods need BepInEx – on the server and for all players in the same version. Test mods with a copy of the world first.

FAQ

Which ports does a Valheim server need?

UDP 2456 and 2457 by default. For a rented server, the assigned ports are shown in the panel.

Why isn't my password accepted?

The password must be at least 5 characters long and must not be part of the server name.

Can I play with Xbox players?

Yes, with the startup parameter -crossplay.

Where do I find my world on my PC?

Under %USERPROFILE%\AppData\LocalLow\IronGate\Valheim\worlds_local – as a .db and a .fwl file.

Was this post helpful?

MagicHosting – Hosting with real value

Hosting pays off with MagicHosting: fair pricing, current deals and operation in SkyLink RZ. Servers, domains and personal support – no hidden costs.

  • Current limited offers from our server exchange
  • Affordable domains with transparent pricing and great offers
  • Powerful DDoS protection for maximum availability
  • Personal support when you have questions or issues