Choose where to host the world
Run the dedicated server on a computer or hosting service if friends want to play when the world owner is away. If the owner will be there every session, they can host inside Valheim with crossplay enabled. Both setups fit up to ten total players. An owner who joins as a player takes one slot.
Use Valheim 1.0 or later for PS5 and Switch 2. The original Switch has no Valheim release in this platform list. A mixed group, including one using Steam plus Xbox on PC, should choose the crossplay backend.
Set up a dedicated server with crossplay
- Install Valheim Dedicated Server. Enable Tools in your Steam library and install the separate server tool. For a rented server, open your provider’s Valheim configuration.
- Keep a copy of the starter script. On Windows, find
start_headless_server.batin the install directory. Edit a copy to keep your settings through Steam tool updates. Put in your server name, world name and a password. Launch the edited copy directly because the Steam shortcut opens the original. - Use the crossplay backend. Keep or add
-crossplayon the server’s launch line, or switch on your provider’s crossplay option. Iron Gate’s Steam backend only accepts Steam clients. The crossplay backend uses a relay, so it does not need router port forwarding. - Start the server and test with the group. Wait for
Game server connectedin the server window. Get the current join code from the running session, then ask one player on each platform to check it before moving an existing world.
How PC, Xbox, PS5 and Switch 2 join the same server
Send the current join code and password to everyone. In Join Game, use the server’s join code. If a PC player connects first via the server list or a public address, they can read its join code in the pause menu and share it with the console players.
See the Valheim crossplay checker if someone is using a different device or PC storefront.
Why a console can’t find or join the server
- Steam friends can join, but console players cannot
- Check the actual launch command for
-crossplay. If you edited a copy of the startup script, make sure that copy is the one running. - The server never appears or the code fails
- Check the server logs for a successful start. Get the current join code after restarting. Compare the client and server builds, including any console update still waiting to download. Use the same release branch.
- The local IP works with an old setup
- For the crossplay backend, use the join code or supported public address. Iron Gate says loopback and local IP addresses do not work with its relay.
- The console blocks crossplay
- Check whether the Xbox account allows cross-network play. For a child account, the family organizer may need to change the relevant setting.
- The server loads an empty world
- Check the
-worldname and the server’s active save directory. Back up the full world save before moving it or changing server settings.
