EN · $ USD
Survival and Sandbox Servers

How to Enable Valheim Crossplay: Xbox and PC Together

7 min read Updated: OyunBulut technical team

In short

You enable Valheim crossplay by adding the -crossplay launch parameter to your dedicated server. Once the server starts, a 6-digit join code appears in the log, and Xbox, Game Pass and Steam players use it to join the same world. The join code changes every time the server restarts. Xbox clients can't run mods, so a crossplay server should only use server-side mods.

In this guide
  1. What Is Valheim Crossplay and How Does It Work?
  2. Turning On the -crossplay Parameter (Step by Step)
  3. Finding and Sharing the Join Code
  4. How Do Players Connect?
  5. How Crossplay Affects Mods
  6. Crossplay or Steam Only? Decision Table
  7. Crossplay Connection Problems and Fixes
  8. Crossplay Server Checklist
  9. Next Step: Bring Your Xbox and PC Friends onto One Server

To let Xbox and PC players share a Valheim world, just add the -crossplay parameter to your dedicated server's launch line. When the server starts, it generates a join code, and players on Steam, Microsoft Store/Game Pass and Xbox consoles enter that code to connect to the same server. This guide covers how to turn the parameter on, where to find the code, how crossplay affects mods, and the most common connection problems.

What Is Valheim Crossplay and How Does It Work?

Crossplay lets copies of Valheim bought on different platforms meet on the same server. The Steam version uses Steam's networking, while the Xbox and Game Pass versions use Microsoft's. To bridge the two, Valheim switches to Microsoft's PlayFab networking service when crossplay is on.

In practice, that means:

  • A crossplay server creates a session through PlayFab and assigns that session a join code.
  • Players on Xbox find the server by that code, not by its IP address.
  • Steam players can use the same code too, so everyone gets a single way to connect.
FeatureCrossplay offCrossplay on
Platforms that can connectSteam onlySteam, Microsoft Store/Game Pass, Xbox
NetworkingSteamPlayFab
How to connectIP:port or the server listJoin code (Steam players can also use the list)
Both-sides modsPossibleNot possible in practice

Turning On the -crossplay Parameter (Step by Step)

In a game panel

  1. Stop the server.
  2. In the panel's startup settings, enable the crossplay option or add -crossplay to the extra parameters field.
  3. Start the server and wait for the join code line in the console.

On OyunBulut Valheim plans, startup parameters and console output are managed from the web panel, so you can copy the code from the console and share it with your players.

On your own server (Windows)

Edit start_headless_server.bat and add the parameter to the end of the line:

valheim_server.exe -nographics -batchmode -name "Sunucu Adi" -port 2456 -world "Dunyam" -password "gizlisifre" -public 1 -crossplay

On your own server (Linux)

./valheim_server.x86_64 -nographics -batchmode -name "Sunucu Adi" \
  -port 2456 -world "Dunyam" -password "gizlisifre" -public 1 -crossplay

The password must be at least 5 characters and must not contain the server name. This rule still applies with crossplay on, and if it's broken the server won't start.

Finding and Sharing the Join Code

Once the server sets up its PlayFab session, it writes a line containing the code to the console and the log file. The line usually includes the phrase join code and a 6-digit number. To pull it from the log on Linux:

grep -i "join code" /home/valheim/valheim.log | tail -n 1

On Windows with PowerShell:

Select-String -Path .\valheim.log -Pattern "join code" | Select-Object -Last 1

To write the log to a file, start the server with the -logFile parameter.

Important: The join code isn't permanent. A new code is generated every time the server restarts. If you share the code in a pinned Discord channel, update it after every restart.

How Do Players Connect?

  1. The player picks a character, continues with Start and switches to the Join Game tab.
  2. Steam players should make sure the crossplay option on this screen is turned on; if it's off, crossplay servers won't show up.
  3. Enter the 6-digit join code in Add server or the join-by-code field.
  4. Enter the server password when prompted, and the world loads.

Xbox console and Game Pass players need multiplayer and cross-network play permissions turned on in their platform settings. If these permissions are off, the player can't connect even with the code; check the family settings especially on child accounts.

How Crossplay Affects Mods

This is the most important decision to make before you turn on crossplay. The Xbox and Game Pass versions can't run BepInEx. So:

  • Both-sides mods (Valheim Plus, mods that add new items or building pieces) shouldn't be used on a crossplay server. Xbox players won't be able to connect or won't see the items.
  • Server-side-only mods usually don't cause problems, but check each mod's description for crossplay compatibility.
  • Client-side visual mods stay on the PC player's own machine and don't affect anyone else.

If you want both a modded community and crossplay, the cleanest solution is to run two separate servers: a modded server for PC only and a vanilla server for crossplay. For the mod side, see the guide How to Install Valheim Mods: BepInEx and Valheim Plus.

Crossplay or Steam Only? Decision Table

Crossplay isn't the right call for every community. Answer these questions based on how your group is set up:

Your situationRecommendation
At least one player in the group is on Xbox or Game Pass, and you don't want modsTurn on crossplay
Everyone is on Steam and you use Valheim Plus or content modsKeep crossplay off
You want to play modded and also bring in your Xbox friendsTwo separate servers: a modded PC server and a vanilla crossplay server
You restart the server oftenPlan on sharing a new code every time with crossplay

The most practical way to keep a crossplay community organized is to create a Discord channel where only the current join code is posted, and to restart the server at a fixed time. For example, if you post the new code after a scheduled restart at the same time every night, players always know where to find it.

Xbox players can't access world files, so world management happens entirely on the server side. You can move an existing PC world to a crossplay server, as long as that world doesn't contain building pieces added by mods. For a mid-sized, mixed-platform group, the OB-VAL-3 plan with 8 GB RAM is enough to keep a crossplay session running without memory trouble as the world grows.

Crossplay Connection Problems and Fixes

The join code line never appears

  • Is the -crossplay parameter actually in the launch line? There may be an unsaved change in the panel.
  • The server's outbound traffic may be blocked. If your own VDS has a firewall rule restricting outgoing connections, the PlayFab connection can't be established.
  • If the server files are outdated, update them; crossplay support depends on the server version.

The code was entered but it won't connect

  • The code may be stale: if the server restarted, get the new code.
  • Game versions may differ. Xbox and Steam updates can arrive at different times; the server and all clients must be on the same version.
  • Cross-network play permission may be off on the Xbox side.

Steam players can't see the server in the list

Make sure the crossplay filter on the Join Game screen is on, or connect directly with the code. For every other connection error caused by ports, firewalls or versions, follow the guide to fixing "can't connect to Valheim server".

Stuttering or lag with crossplay

Because crossplay connections go through an extra network layer, connection quality can be more sensitive to players' internet connections and the server's location. For a group playing from Türkiye, a server inside the country helps keep latency low; we cover this in detail in game servers located in Türkiye and the ping advantage.

An Xbox player connects but keeps disconnecting

When the console player's network has a strict NAT type, the connection can stay unstable even after it's established. Check the NAT type in the Xbox network settings; a wired connection and UPnP enabled on the router often improve things. If several Xbox players disconnect at the same time, the problem is most likely on the server side: check the console for error lines and memory usage. If nothing looks wrong on the server and the drops only happen to one player, having that player try another network (for example, a mobile hotspot) quickly tells you whether it's a network issue.

Crossplay Server Checklist

  • -crossplay is in the launch line.
  • The password is at least 5 characters and doesn't contain the server name.
  • Server files are up to date and match the players' game version.
  • No both-sides mods are installed.
  • The current join code is posted on Discord.
  • Xbox players have cross-network play permission turned on.

Next Step: Bring Your Xbox and PC Friends onto One Server

Keeping a crossplay server online 24/7 also matters because it keeps the join code from changing often; every restart means a new code. OyunBulut Valheim server plans run on infrastructure in Istanbul and come with automatic setup, a web panel and DDoS protection; you can change startup parameters from the panel and see the code in the console instantly. For a mid-sized, mixed-platform group, the OB-VAL-3 Valheim plan with 8 GB RAM is a balanced starting point for a crossplay server.

Frequently asked questions

How do you enable crossplay in Valheim?

Add the -crossplay parameter to your dedicated server's launch line and restart the server. Once it starts, a 6-digit join code appears in the console.

Why does the Valheim join code keep changing?

The join code is generated fresh for each server session. When the server restarts, grab the new code from the console and share it with your players.

Can I use mods with crossplay on?

Xbox and Game Pass clients can't run mods, so you shouldn't use both-sides mods. Server-side-only mods usually don't cause problems.

Can PS5 players join Valheim crossplay?

Valheim's crossplay support covers the Steam, Microsoft Store/Game Pass and Xbox versions. Check the game's official announcements to see whether a given platform is supported.

Why can't Steam players see the crossplay server?

The crossplay option on the Join Game screen may be off. Turn it on, or connect to the server directly with the join code.

For this guide

Recommended plans

With 8 GB RAM and startup parameters you manage from the panel, OB-VAL-3 is an easy, balanced starting point for groups that want Xbox and PC players in the same world with -crossplay.

OB-VAL-3

Recommended

8 GB RAM

$7.47/mo

+VAT

  • Processor4 CPU
  • Disk45 GB NVMe
  • LocationIstanbul
  • DDoS Protection
  • Automatic Setup
  • Web Panel
  • 7/24 Support

4 GB RAM

$3.54/mo

+VAT

  • Processor4 CPU
  • Disk30 GB NVMe
  • LocationIstanbul
  • DDoS Protection
  • Automatic Setup
  • Web Panel
  • 7/24 Support

6 GB RAM

$5.31/mo

+VAT

  • Processor4 CPU
  • Disk35 GB NVMe
  • LocationIstanbul
  • DDoS Protection
  • Automatic Setup
  • Web Panel
  • 7/24 Support

Valheim — tüm paketler

Need help with setup?

Send questions about your service in a support ticket, and our technical team will walk you through it step by step.