Set up your Valheim server: joining, admins and bans

Let players join by address or crossplay join code, make admins in adminlist.txt, work with bans or a whitelist and use admin commands in the game.

EliteStarHosting Team8 November 20264 min read
Ready to start? View the Game Hosting plans

This guide gets your Valheim server ready for daily use: the settings that matter, how players get in, who is admin and who gets banned. Mods and modpacks are covered in Valheim server with mods.

The settings under Startup

Open your server in the game panel and go to Startup. A change takes effect after a restart.

  • SERVER NAME: the name in the server list, up to 60 characters.
  • WORLD NAME: the world the server loads, up to 20 characters. A name that doesn't exist yet gives a new world.
  • PUBLIC SERVER: with True your server is in the game's server list. With False players join with the address or the join code.
  • ENABLE CROSSPLAY: with True players on other platforms can join too, such as Xbox and PlayStation 5 (November 2026). Without crossplay, only Steam players get in.
  • AUTO UPDATE: the server updates itself when it starts. Players and server need the same Valheim version to connect.
  • BETA BRANCH and BETA PASSWORD: leave them empty, unless all your players switch to the same test version.

The variables of a Valheim server under Startup, such as ENABLE CROSSPLAY, PUBLIC SERVER, SERVER NAME and WORLD NAME, with the server password made unreadable

A Valheim server has room for up to 10 players at the same time.

Joining your server

In Valheim, players choose Join Game. From there they get in three ways:

  • Server list: open the Community tab and search for your server name. This needs PUBLIC SERVER on True.
  • Address: click Add server and type the address with the port from the top of your server page, for example gnode1.elitestarhosting.com:2456.
  • Join code, only with crossplay: someone who is already on the server opens the pause menu with Esc and clicks the join code to copy it. The code is also shown in the Console. Others paste it at Add server.

The join code changes with every restart. So share the address as a fixed link; that works with crossplay too.

Making players admin

Admins, bans and the whitelist are three text files in .config/unity3d/IronGate/Valheim, next to the worlds_local folder. Each file takes one ID per line. Such an ID is the platform, an underscore and the player's number, for example Steam_76561198012345678. Capital letters matter. Players see their own ID in the game with F2, and the ID also appears in the Console when they connect.

  1. Stop your server.
  2. Go to Files and open .config/unity3d/IronGate/Valheim/adminlist.txt.
  3. Put the player's ID on a new line.
  4. Click Save Content and start your server.

The .config/unity3d/IronGate/Valheim folder with worlds_local, adminlist.txt (outlined), bannedlist.txt, permittedlist.txt and prefs

The other two files work the same way:

  • bannedlist.txt: players who are banned from your server.
  • permittedlist.txt: as soon as there is one ID in it, only the players on this list can join. Add yourself first.

Admin commands in the game

Admins type commands in the game's console. On Steam, you switch it on once: right-click Valheim in your library, choose Properties and add -console under Launch Options. In the game, F5 opens the console.

  • kick Name: removes a player from the server.
  • ban Name and unban Name: bans a player or lifts the ban.
  • banned: shows who is banned.
  • save: saves the world right away, handy before a restart.

Admins can also kick a player from the player list in the pause menu.

Backups

Valheim saves the world every BACKUP INTERVAL seconds: 1800 by default, so every 30 minutes. It also keeps BACKUP COUNT backups of its own. By default that's 4: one of about 2 hours old (BACKUP SHORTTIME) and three that are 12 hours apart (BACKUP LONGTIME). You find them in worlds_local as folders with your world's name, _backup_auto- and the date and time.

The worlds_local folder with the world folder Dedicated and its automatic backups next to it

Those backups are on the same server as your world. So also make backups in the panel, for example every night with Schedules. Want to put your own world or an older copy on the server? Read Upload your own Valheim world.