Most Valheim groups want the same thing: a world just for their friends, always online, that strangers can't wander into. Valheim makes that easy once you know which three settings do the work. This guide covers how to make a private Valheim server, how console friends get in, and what to avoid.
The three settings that make a Valheim server private
Valheim's dedicated server has no config file. Everything is passed to the server when it starts. Three settings decide who can get in:
- Public: off. A public server is listed in the in-game Community tab. A private one isn't, but it still works with Join IP and join codes. On a self-hosted server this is the
-public 0 launch argument.
- A password. Everyone who joins has to type it. Valheim has two rules here that catch people out: it must be at least 5 characters, and it must not appear anywhere in the world name. World
Midgard with password gard makes the server refuse to start, usually without an obvious error.
- An allow list (optional). Valheim reads a
permittedlist.txt file from the server's save folder. If it has any entry, only the listed players can join, even with the right password. Steam players are listed by SteamID64. Console players use the platform ID shown in the in-game player list (F2).
A password on its own is enough for most friend groups. Add the allow list if the password has leaked or you're running a server for a bigger community.
Option 1: Host it from your own PC
You can run the free Valheim Dedicated Server tool from Steam on a spare PC. To make it private and reachable:
- Start it with
-public 0 and a -password that follows the rules above.
- Forward the server's UDP ports (2456–2457 by default) on your router.
- Give friends your public IP and port for Join IP.
- Leave that PC running whenever anyone wants to play.
That last point is where most self-hosted Valheim worlds end. The world is only online while the host PC is, every update has to be done by hand, and your home IP is shared with the group.
Option 2: A hosted private server (about five minutes)
On our Valheim server hosting, every server starts private-ready:
- Order and wait about two minutes. The server runs the official 1.0 dedicated server with crossplay on. A password is generated for you at checkout.
- Open Server Settings. Set the server name and your own password (5+ characters, not part of the world name), and make sure Public Server is off.
- Restart. Valheim reads settings once at launch. When the console shows
registered with join code, you're live.
- Share the details. PC friends use Join IP with the address from your connection card. Console friends use the six-digit join code from the console. Everyone types the password.
- Optional: lock it to a list. Add player IDs to
permittedlist.txt on the Files tab and restart.
Already have a world? Use Import a world on the Server Settings tab, or follow our guide to moving your Valheim world to a dedicated server. Valheim 1.0 keeps old worlds, and the Deep North appears in any part of the map nobody has explored yet.
Console friends on a private server
Valheim 1.0 brought crossplay to PlayStation 5, Xbox and Nintendo Switch 2. Consoles can't type an IP, so on a private server they join with the join code:
- The code appears in the server console as
registered with join code 123456.
- It changes every time the server restarts. Always share the newest one. The IP and port never change.
- Crossplay must be switched on in the server settings (it is on by default with us).
For the full console picture, including what PS5 players can't do (mods), see our Valheim crossplay guide.
How many friends can join?
Valheim allows up to 10 players per server. That's the game's own limit, not a plan limit. A typical group of 2–6 players runs comfortably on a 4GB server. Larger groups with big bases, or anyone exploring the Deep North heavily, should look at 6–8GB.
Common problems
The server won't start after I set a password. It's shorter than 5 characters, or it's contained in the world name. Change it and restart.
My friend can't find the server in the Community list. That's expected: a private server isn't listed. Use Join IP (PC) or the join code (console).
The console friend's join code doesn't work. The server restarted since you shared it. Read the new code from the console.
A friend gets kicked straight away with the right password. permittedlist.txt has entries and they aren't on it. Add their ID and restart.
The short version
Turn Public off, set a 5+ character password that isn't in the world name, share Join IP with PC friends and the latest join code with console friends. If you'd rather not keep a PC on for it, a private Valheim server is set up in about two minutes. You can also try one free for 72 hours, no card and crossplay on.
Frequently Asked Questions
How do I make my Valheim server private?
Set Public to off (-public 0) so it isn't listed, and set a password of at least 5 characters that doesn't appear in the world name. For an extra lock, add allowed players' IDs to permittedlist.txt.
Can friends still join a Valheim server that isn't public?
Yes. PC players use Join IP with the server's address and port, and console players use the six-digit join code from the server console. Both still need the password.
Why won't my Valheim server start with a password?
Valheim refuses to start if the password is shorter than 5 characters or is part of the world name. Pick a different password and restart.
How many players can join a private Valheim server?
Up to 10, the game's own limit for every dedicated server.
Can PS5 and Xbox players join a private Valheim server?
Yes, with crossplay enabled. They enter the join code shown in the server console and then the password. The code changes on every restart.