Your Valheim join code is on the Play with friends card of the Overview page, under the third join step, while the server runs with crossplay on. It is six digits and it can change at every restart, so check the card after one. The same code is also printed in the Console.
Find the code on the Overview page
- Open your server in the panel and make sure the badge says Online.
- On the Play with friends card, look under How to join. Below the third step, Join code shows the six digits.
- Click the copy button beside the code, or use Copy invite message, which adds the code at the end of the message.

The note under the code says: New at every restart. Steam friends can keep using the address above.
What the card says when there is no code
| The card says | What it means | What to do |
|---|---|---|
The server is starting. The join code appears here a few seconds after it is open. | The game has not registered the server yet. | Wait for Online and a few seconds more. |
The server is stopped. Start it to get a join code: it is new at every start. | No code while the server is off. | Click Start. |
Crossplay is off, so only Steam players can join. | No code without crossplay. | Turn on Enable Crossplay in Settings, Game Settings, and restart. See How to turn crossplay on or off on your Valheim server. |
The panel cannot read the join code right now. | The panel could not read it this time. | Read it in the Console, as below. |
Find the code in the Console
- Click the Console tab.
- Click the magnifying glass above the console (Search the console) and type
join codein the Search output... box. - Look for a line like this:
Session "My Server" registered with join code 123456 - The six digits after
join codeare the code.

The game repeats the code in other lines, for example Session "My Server" with join code 123456 and IP ... is active with 0 player(s). A line that says has join code , now 0 player(s) has no digits yet: the code comes a few seconds later.
The Console keeps only recent lines. If the line has scrolled out, use the card instead.
Use the code
- Xbox, PlayStation and Game Pass: How to join your Valheim server from Xbox or Game Pass.
- PC players can use the code too, or the address: How to join your Valheim server from Steam.





