How to play Valheim with friends across PC and console
Tutorials

How to Play Valheim With Friends (PC, PS5, Xbox and Switch 2)

How to host a Valheim world for friends, how each platform joins with crossplay, and when a dedicated server is worth it for a group of up to ten.

Want your own server? Valheim server hosting — plans, specs and regions.

November 20, 20267 min read
Share

On This Page

To play Valheim with friends, one of you hosts a world from the game's own menu and the others join through the friends list or a six-digit join code. Up to 10 players can share a world, and since the 1.0 release on 9 September 2026 that includes PC, Xbox, PlayStation 5 and Nintendo Switch 2 players together. The catch with hosting from the menu is that the world is only online while the host is playing. A dedicated server removes that limit.

This guide covers the three ways to set it up, how each platform joins, and the handful of things that stop friends connecting.

What you need to know first

  • Ten players is the limit for a world, however you host it.
  • Crossplay is a switch, and it has to be on. A world hosted without crossplay is Steam-only. Console and Microsoft Store players can't see it.
  • Everyone needs the same game version. Iron Gate's own advice is to make sure your game has the same patch version as your friends'. If it doesn't, the joining player sees "Incompatible version".
  • Every world has a password when you host it for others. It must be at least 5 characters and must not appear in the world's name, or the server won't start.

Skip SteamCMD, port forwarding and the crossplay flag

The official Valheim 1.0 dedicated server, crossplay already on so PS5, Xbox and Switch 2 friends join by code, backups included. From $7.99/mo, online in 60 seconds.

Start a Valheim server

Not ready to pay? Free 3-day trial, no card →

Option 1: Host from the game menu

This is the quickest way and it costs nothing.

  1. On the main menu choose Start Game and pick your character.
  2. Select the world you want to share, or create a new one.
  3. Turn on Start Server, turn on Crossplay if anyone is on a different platform, and set a password.
  4. Leave Community Server off unless you want the world listed publicly.
  5. Start the world. Friends go to Join Game and find you on the Friends tab, or they enter the join code shown in your pause menu.

It works well for an evening. The limits show up after the first week:

  • The world is offline whenever the host is. Nobody can check on the base, farm or build until that one person logs in.
  • The host's machine runs the world for everyone, so their connection and hardware set the experience for the whole group.
  • The world's save sits on the host's device. If that person stops playing, the group's world goes with them.

Option 2: Run a dedicated server on a spare PC

Valheim has a free dedicated server tool on Steam. It runs the world without anyone needing to be in the game, so friends can join at any hour as long as that PC is switched on.

To make it work for a mixed group:

  • Add the -crossplay launch option, or only Steam players will be able to join.
  • Set a password of at least 5 characters that isn't part of the world name.
  • Forward UDP ports 2456–2457 on the router if you are running without crossplay. With crossplay on, the server connects through Valheim's relay and gives you a join code instead.
  • Keep the PC on. The world stops when it sleeps or restarts.

Our Valheim dedicated server setup guide walks through the files and launch options.

Option 3: A hosted dedicated server

A hosted server is the same dedicated server running in a data centre, so the world is online all day without anyone's PC being involved. Friends in different time zones can play when it suits them, and the base is where they left it.

On our Valheim server hosting, crossplay is switched on from the first boot, the join code is shown in the server console, and the password and world settings are on a settings page. The smallest plan, Karve, has 4GB of RAM and all 10 player slots for $7.99/month. If you want to see whether it suits your group first, you can try a Valheim server free for 72 hours with no card.

You don't have to start again, either. A world you have been hosting from the menu can be uploaded to a server. See how to move your Valheim world to a dedicated server.

How each platform joins

PlatformHow to join a dedicated server
PlayStation 5Join Game → Join Code → enter the six digits
Nintendo Switch 2Join Game → Join Code → enter the six digits
XboxJoin Game → Join Code → enter the six digits
PC (Steam, Microsoft Store, Mac)Join Code, or Join IP with the server's address and port

One thing catches every group out once: the join code changes every time the server restarts. If a console friend's code has stopped working, read the new one from the server console and send it again. PC players who join by IP aren't affected.

How much RAM a Valheim server needs

Valheim is light. An empty server we measured sat at about 1.3GB of memory, and the number grows with explored map and base size more than with player count.

GroupServer RAMOur plan
A few friends, new world4GBKarve, $7.99/month
A full ten players or large bases6GBLongship, $10.99/month
Very large builds on a long-running world8GBDrakkar, $13.99/month

There is more detail in how much RAM a Valheim dedicated server needs.

Common problems when joining friends

"Failed to connect". Work through three checks in order: is the host's world or server actually running, is everyone on the same game version, and is crossplay on if you are on different platforms. Our players can't join checklist goes further.

"Incompatible version". One side has updated and the other hasn't. Update the game, and restart the server so it picks up the patch.

A console friend can't find the server. Consoles join by code, so there is nothing to search for. Send them the current six-digit code.

The join code doesn't work any more. The server has restarted and issued a new one.

The server won't start after setting a password. The password is shorter than 5 characters or is contained in the world name.

Mods. Console players can't use mods, and in our testing a modded server running BepInEx on Linux lost crossplay. If anyone in the group is on console, keep the server unmodded. The crossplay server guide covers this in detail.

The short version

For a night or two, host from the menu with Start Server and Crossplay on and share the join code. If the group wants to play at different times, or you don't want the world tied to one person's PC, use a dedicated server: the free tool on a spare machine, or a hosted Valheim server that is online around the clock. You can try one free for 72 hours and upload your existing world to it.

Frequently Asked Questions

How many players can play Valheim together?

Up to 10 players can be in one world at the same time, whether it's hosted from the menu or on a dedicated server.

Is Valheim crossplay?

Yes. Since 1.0, players on Steam, the Microsoft Store, Mac, Xbox, PlayStation 5 and Nintendo Switch 2 can play together, as long as the host or server has crossplay turned on.

Can PS5 and PC players play Valheim together?

Yes. The PS5 player joins with the six-digit join code, and the PC player can use the same code or the server's IP address.

Does the host have to be online for friends to play?

If the world is hosted from the game menu, yes. On a dedicated server the world stays online without the host, which is the main reason groups move to one.

Why does my friend see "Incompatible version"?

Their game and the host's game are on different patches. Update both, and restart the server if you are using one.

Can we move our existing world to a dedicated server?

Yes. The world's save files can be uploaded to a dedicated server, and everyone carries on where they left off.

Skip SteamCMD, port forwarding and the crossplay flag

The official Valheim 1.0 dedicated server, crossplay already on so PS5, Xbox and Switch 2 friends join by code, backups included. From $7.99/mo, online in 60 seconds.

Start a Valheim server

Not ready to pay? Free 3-day trial, no card →

Or see plans, specs and regions on Valheim server hosting.

Related Help Articles

Need step-by-step instructions? Check out these guides in our Help Center.