ValheimGuideTurn on Crossplay in your server's settings and restart. Your server gets a six-digit join code that shows on your server card, and friends on Xbox, Game…
Turn on Crossplay in your server's settings and restart. Your server gets a six-digit join code that shows on your server card, and friends on Xbox, Game Pass, PlayStation 5, Switch 2, the Mac App Store version of Valheim, and PC enter it from Valheim's Join Game screen. The code changes every time the server starts, so always share the current one. Consoles cannot host their own dedicated server, so a crossplay server is how a mixed group shares one world.
Find the Crossplay checkbox in your Valheim server's configuration.

Saving prompts a restart so the server can switch over. Crossplay uses a different networking system (Microsoft PlayFab), which is what makes console connections possible.
After the restart, your server card shows a join code. Copy it and send it to your group. Anyone joining still needs your server password, so the code alone does not let strangers in.
The current code is everywhere your friends get join details:
Your server card: the Join Code button copies it.
Share: the share text includes the code, on a line of its own so it copies cleanly.
Copy join details: in the dashboard search, a server's menu copies the address, password and join code in one go.
Your public server page: if you turned it on, friends see the code under the address and can copy it. The page never shows your password.
Your Discord card: with Haptic for Discord, the card shows the code in large text and posts it when the server is up.
Support chat: ask "what's my join code?" and it tells you the current one.
Valheim registers a new join code every time the server starts: after a restart, after an update, and every time a Wake & Play server wakes up. Often the same digits come back, but not always, so a code from yesterday may not work today.
While the server is asleep or still starting there is no code yet. Every place above then says Join code appears once the server is running. Wake or start the server, wait for it to come online, then share the code it shows. If a friend wakes the server from your public page, the new code appears on that page by itself a few seconds after the server is up.
Crossplay works with server-only mods. Mods that run on the server alone, like ServersideQoL, keep crossplay on, so console friends still join. A mod every player has to install on their own PC turns crossplay off, because console, Game Pass and Mac App Store players can't install mods. The dashboard handles this for you: the save screen names those mods before crossplay turns off. See Valheim mods and crossplay for how to choose.
Xbox, Game Pass, PlayStation 5, Switch 2, and the Mac App Store version: Start Valheim, choose Start Game, pick a character, then open Join Game, choose to add a server, and enter the join code.
Mac players, which version? A copy started from the Steam library is the Steam version and joins like any Steam player. A copy opened from Launchpad or the Applications folder is the Mac App Store version: it joins only a crossplay server, by the join code. Update it in the App Store first, because App Store builds can trail a Valheim patch for a while, and until the update arrives it cannot crossplay with players on the new version.
Steam players on a crossplay server: the same join code works, and the server can also appear in Valheim's Community server list.
Steam players on a non-crossplay server: they join by the server address on your server card, through the Community list, or by adding the address to Steam's server favorites.
The password is the lock. Valheim requires a server password, and everyone who joins needs it, on every platform.
Server browser visibility is your choice. The Show in server browser setting controls whether your server can appear in Valheim's in-game Community list. Turn it off and friends join by code or address only.
Crossplay runs through Microsoft. Join codes and crossplay connections go through Microsoft's PlayFab service. On the rare occasion PlayFab itself has an outage, every crossplay Valheim server on the internet is affected at once. When that happens your dashboard shows a notice on the server card, your world is safe, and joins recover when Microsoft's service does.
