This is the quickest way and it costs nothing.
- On the main menu choose Start Game and pick your character.
- Select the world you want to share, or create a new one.
- Turn on Start Server, turn on Crossplay if anyone is on a different platform, and set a password.
- Leave Community Server off unless you want the world listed publicly.
- 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.
| Platform | How to join a dedicated server |
|---|
| PlayStation 5 | Join Game → Join Code → enter the six digits |
| Nintendo Switch 2 | Join Game → Join Code → enter the six digits |
| Xbox | Join 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.
| Group | Server RAM | Our plan |
|---|
| A few friends, new world | 4GB | Karve, $7.99/month |
| A full ten players or large bases | 6GB | Longship, $10.99/month |
| Very large builds on a long-running world | 8GB | Drakkar, $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.