Up to 10 players per world · Valheim 1.0.21
Play with friends
Up to 10 players share one world. One of you hosts it, the others join, and everyone brings their own character.
1Host from the game
Start Game → pick a world → tick Start Server, plus Crossplay for friends on other platforms.
The world runs on your PC, only while you play.
2Join
Join Game → Friends or Community, or Add server and type:
[IP/URL]:[port] or [6 digit invite code]
3Always on
A dedicated server keeps the world running when the host is offline.
Join codes and crossplay
With Crossplay ticked
- The session runs on PlayFab and is open to every platform.
- It gets a random 6-digit code — a new one each time it starts. The host sees Join code: 123456 in the menu; a click copies it.
- Friends: Join Game → Add server → the 6 digits.
Without crossplay
- The session runs on Steam and is listed only for players on the host's platform.
- Friends find it under Friends, or join by IP — an address typed without a port uses 2456.
- Joining by IP needs port 2456 open on the host; Steam's server list also asks 2457.
Platforms the game's code knows: Steam, Xbox, PlayStation, Nintendo, macOS (Game Center). A Public session needs a password of at least 5 characters that isn't part of the world's name or seed; a friend who comes in through your platform invite skips it.
Playing multiplayer through a VPN? whoseesmyip.com shows the IP address and country that servers see from your connection.
What you share, what you keep
Yours: the character
A file on your own PC (characters_local/<name>.fch): skills, inventory, equipment, food and the Forsaken power you chose. It comes with you to any world or server. For each world it also keeps your bed, explored map and where you died and logged out.
Beware that joining any online server will put your game character at risk. It might be a good idea to create a separate character when playing online to reduce the risk of losing precious possessions. Also be aware that there is always a risk of encountering cheaters and griefers when playing online. Good luck!
Shared: the world
Kept by the host's game or the server: buildings, chests and what's in them, tamed animals, portals, items on the ground, and which bosses are beaten — and with them the raids and progress they unlock for everyone.
Sleeping
Game.UpdateSleeping, EverybodyIsTryingToSleep
Forsaken powers
ItemStand.Interact → DelayedPowerActivation
Sharing the map
MapTable.OnWrite / OnRead, Minimap.GetSharedMapData; Minimap.OnTogglePublicPosition
Tombstones
TombStone.Interact, TombStone.GiveBoost
Friendly fire
Player.SetPVP, Player.CanSwitchPVP
Raids
RandEventSystem.HaveGlobalKeys, PlayerIsReadyForEvent
Tougher enemies
Game.GetPlayerDifficulty
Boss drops in a group
Everything not marked drops once per kill, for the group to share. Amounts on the default Resources setting; the Resources world modifier scales them, trophies and the one-per-player drops excepted.
Cheats and admins
Cheats work only in the game that runs the world. The host types devcommands and has every cheat. A player who joined can't use them — not even an admin.
On a dedicated server, an admin's console sends devcommands and these 12 commands to the server, which runs them:
genloclistkeysplayersremovekeyresetkeysresetworldkeysrestartpartysetkeysetworldmodifiersetworldpresetskiptimesleep
god, fly, spawn and the other cheats don't work there. Admins go in adminlist.txt; F2 in the game lists every player's ID in the form it takes. All commands: console commands.
Can't connect?
Questions
Is Valheim multiplayer?
Yes. Up to 10 players share one world: one hosts it from the game (Start Server) or on a dedicated server, the others join with Join Game.
How many players can play Valheim together?
10 per world. The server turns the next player away with "Server full" once 10 are connected (ZNet.RPC_PeerInfo).
Does the host need to be online?
For a world hosted from the game, yes: the world lives on the host's PC and runs only while they play. A dedicated server runs the world on its own, so friends can play while the host is away.
Is Valheim crossplay?
Yes, on a session started with Crossplay (the box in the menu, or -crossplay on a dedicated server). It runs on PlayFab and shows a 6-digit join code that players on any platform type into Add server. Without crossplay the session is listed only for the host's own platform.
Where do I find the join code?
In the host's game menu: "Join code: 123456" — clicking it copies it. A new code is made every time the session starts, so after a restart friends need the new one. A dedicated server writes it to its log.
Is Valheim split screen?
No. The game runs one player per copy (Player.m_localPlayer); every player joins from their own game.
Can I use my character on someone else's server?
Yes. Your character — skills, inventory, equipment — is a file on your own PC, so it goes to every world you join; each world keeps your spot, bed and explored map for that character separately.
Do boss drops drop for every player?
Only Swamp Key (The Elder) and Wishbone (Bonemass): one for every player in the world (CharacterDrop.m_onePerPlayer). Every other boss drop comes once per kill, for the group to share.
Does everyone have to sleep?
Yes. The night is skipped only when every player in the world is in a bed, in the afternoon or at night (Game.EverybodyIsTryingToSleep).
Can friends join without the password?
A friend who joins through the host's platform invite skips the password check (ZNet.RPC_PeerInfo, MatchmakingProvider.SecretKeyOk); anyone joining from the list, by IP or by code types it.
Can admins use cheats on a dedicated server?
Only some. Cheats run only in the game that is the server (Terminal.IsCheatsEnabled), so a player who joined can't use god or fly. An admin's console sends these to the server instead: devcommands, genloc, listkeys, players, removekey, resetkeys, resetworldkeys, restartparty, setkey, setworldmodifier, setworldpreset, skiptime, sleep.
Does Valheim get harder with more players?
Yes: each extra player within 100 m of a creature gives it +30% effective health, and each extra player within 100 m of the player it hits gives that hit +4% damage (each counted up to 5). With 5 players together a creature takes 2.2× the hits and deals 1.16× the damage.
Formula
Every number and rule on this page is read from the game's code and files each patch; button and message texts are the game's own English.
ZNet (player limit, join checks), ZPlayFabMatchmaking (join codes, crossplay listing), ServerJoinDataDedicated, Game.UpdateSleeping, CharacterDrop, ItemStand, MapTable, TombStone, Player.CanSwitchPVP, Terminal.IsCheatsEnabled — Valheim 1.0.21
