Skip to content

Valheim Dedicated Server: Setup, Ports, Password and Crossplay (1.0)

Set up a Valheim dedicated server for 1.0: panel settings, the 5-character password rule, ports 2456-2457, crossplay join codes, admins and self-hosting.

Published · Updated

A Valheim dedicated server is Iron Gate's free Valheim Dedicated Server program (Steam app 896660) running your world on a machine that stays on, so your friends can play without you. Setting one up comes down to four things: a password of at least 5 characters that doesn't appear in the world name, ports 2456 and 2457, the -crossplay option if anyone joins from Xbox, PlayStation 5 or Switch 2, and your ID in adminlist.txt. On a Valheim server from us the panel handles the install and the ports. This guide covers the settings that are left, how players connect, and how to run the server on your own Windows or Linux machine.

Version checked

Valheim 1.0.20 (Steam, 15 October 2026), dedicated server build 25909431. The server and every player must be on the same version.

Why run a dedicated server

When you host from inside the game, the world only exists while your game is open. Everyone drops the moment you quit. A dedicated server is the same world running on its own:

  • The world is always up. Friends in other time zones can play while you're offline, and progress carries between sessions.
  • No player's connection carries the game. With in-game hosting, everyone's experience depends on the host's upload speed and CPU. The server takes that job.
  • It's how consoles play together. Consoles can join a crossplay dedicated server but can't run one. That's why console groups rent one rather than host.

Iron Gate's 1.0 FAQ: "Valheim 1.0 will be a game for 1-10 players." That is the game's limit, whatever server you run it on.

Starting your server

  1. Open your server in the panel and click Start. The game files were installed when the server was created (about 2 GB).
  2. With Automatic Steam Updates on (the default), every start checks Steam for a newer build and installs it first. That's why a start right after a Valheim patch takes longer.
  3. The panel marks the server as running when the console prints Opened Steam server. Iron Gate's guide treats Game server connected as the sign that it's accepting players. Give it until that line before you try to join.

Before you hand out the address, set the password. A bad password is the most common reason a new Valheim server won't come up.

The password rule

A public server needs a password of 5+ characters that isn't part of the world name or seed

When Server Visibility is Public, Valheim checks the password at startup. It must be at least 5 characters, and the world name and seed must not contain it. If either check fails, the server logs Error bad password: and shuts down. With a world called Vikings2026, the password Vikings fails and Mead4Odin works. A Private server skips the check.

Every server starts with the password changeme. Change it in the Startup tab before anyone joins. The panel won't accept anything shorter than 5 characters, but it doesn't check the world-name rule, so that one is up to you. Players who type it wrong see "Wrong password".

Startup settings

Every field below is read only at startup. Change it, then restart.

Panel field Default What it does
Server Name Gameserverkings Valheim Server The name in the in-game list. Pick something distinctive, because console players find servers by name
World File Name Dedicated The world to load. If no world by that name exists, Valheim creates a new one. Avoid spaces
Server Password changeme See the password rule above
Server Visibility Public Public lists the server in the in-game Community list. Private hides it, and players join by IP
Enable Crossplay Yes Adds -crossplay, which runs the server on Valheim's crossplay backend so every platform can join
Modding Framework Vanilla Vanilla, BepInEx or ValheimPlus. Changing it means deleting your files and reinstalling. Installing mods covers how
Save Interval 1800 Seconds between world saves
Backup Count / Short-term / Long-term 4 / 7200 / 43200 Valheim's own rolling world backups. Iron Gate: "The first is the 'short' backup length, and the rest are the 'long' backup length"
Automatic Steam Updates On Update on every start. Leave it on unless you're deliberately holding a version
Extra Launch Arguments empty Added to the end of the launch line, for example -modifier raids none. World modifiers lists every value

Don't add -port

Valheim uses the port you give it and the next one up: 2456 and 2457 by default. Your server's start script already passes -port from your allocation, and the panel opens both ports. A -port in Extra Launch Arguments gives you a second port setting the panel didn't open.

How players connect

From a PC, by IP. In Valheim: Start Game, pick a character, Join Game, Join IP, then enter the IP and port from the Address at the top left of your panel. Enter the password when asked.

From the list. With Server Visibility set to Public, the server shows up in the Community tab, searchable by name. The list can take a few minutes to pick up a server that's just started, so if it's missing, join by IP to check the server is fine, then wait.

Your character comes with you. Characters and worlds are saved separately, so the Viking you made in singleplayer brings their skills and inventory onto the server. The world belongs to the server, and the character belongs to the player.

Crossplay: Xbox, PlayStation 5 and Switch 2

Iron Gate's guide: without -crossplay, "the Steam backend is used, which means only Steam users can see and join the Server." With it, the server runs on the crossplay backend (PlayFab), which relays traffic so every platform can join. On our panel that's Enable Crossplay: Yes (the default) or No.

With crossplay on:

  • Players can use a join code. The server shows a Join code in the pause menu. Other players paste it under Join Game → Add server. Look up the current code again after a restart before you send it round.
  • IP still works, but only the public one. Iron Gate: you can connect "using the public IP address and port number, a join code or via the server list, however it's not possible to connect using a local IP address or a loopback IP address."
  • Xbox account settings can block it. An Xbox player without the crossplay privilege sees "Your platform privilege settings prevent you from playing on servers that allow crossplay with other platforms." That's fixed in the player's Xbox privacy settings, not on the server.

Turn crossplay off only if everyone is on Steam and you want the plain Steam backend.

Making yourself admin

Admin rights come from a text file, not from anything in game. Valheim reads adminlist.txt from its save folder. On your server that's .config/unity3d/IronGate/Valheim/, next to the worlds_local folder. Edit it in the File Manager:

Steam_76561197960287930
adminlist.txt

Put one ID on each line. Iron Gate's format is [Platform]_[User ID] and it's case sensitive. The ID "can be obtained from the Server log or from within the game using the F2 panel". Copy it exactly as F2 shows it, especially for PlayStation 5 and Switch 2 players, who have no SteamID. Restart, then open the console in game with F5.

The same folder holds two more lists in the same format: bannedlist.txt and permittedlist.txt. Be careful with the second one. Iron Gate: "adding a person on the permitted list will ban everyone else from the server." Valheim Console Commands covers what admins can run, including why cheat commands are refused on a dedicated server.

Running a Valheim dedicated server yourself

These are the official steps, if you want to host on your own machine.

Windows. In your Steam Library, tick Tools in the filter, then install Valheim Dedicated Server. You don't need a second copy of the game. In its folder (right-click it in Steam, then Manage → Browse local files), make a copy of start_headless_server.bat and put your name, world and password in the copy. Steam resets the original on every update. Run the copy, allow it through Windows Firewall, and stop it with Ctrl+C. Iron Gate warns that closing the window with the X can leave it running in the background.

Linux. Install it with SteamCMD. You don't need to own the game:

steamcmd +force_install_dir ~/valheim-server +login anonymous +app_update 896660 validate +quit
bash

That's the same app our panel installs. Then start it with ./start_server.sh from the server folder, edited the same way. Iron Gate lists libatomic1, libpulse-dev and libpulse0 as extra packages, and a minimum of GLIBC_2.29 and GLIBCXX_3.4.26. On an older distribution, use the bundled docker_start_server.sh start_server.sh instead.

Ports. On the Steam backend, forward both 2456 and 2457 on your router. With -crossplay, Iron Gate says the server "does not require Port Forwarding", because traffic goes through the relay.

Where the world goes. Windows: %USERPROFILE%/AppData/LocalLow/IronGate/Valheim. Linux: ~/.config/unity3d/IronGate/Valheim. Use -savedir to change it. Valheim 1.0 stores worlds in a new folder format, which Valheim Save Location explains.

The launch options you'll set, from Iron Gate's list:

Option Example Notes
-name -name "My server" Name in the server list
-port -port 2456 Also uses port + 1
-world -world "Dedicated" Creates the world if it doesn't exist
-password -password "Mead4Odin" 5+ characters on a public server
-public -public 1 0 hides it from the list
-crossplay -crossplay Crossplay backend for all platforms
-savedir -savedir /srv/valheim Where worlds and the admin lists live
-saveinterval, -backups, -backupshort, -backuplong -backups 4 Save interval, backup count, and the short and long backup intervals (times in seconds)
-instanceid -instanceid 2 Several crossplay servers on one port and MAC address
-preset, -modifier, -setkey -preset hard World modifiers

Your first day, in order

  1. Start the server and wait for it to come up.
  2. Replace changeme with a password of 5+ characters that isn't part of the world name, and give the server a distinctive Server Name. Restart.
  3. Leave Enable Crossplay on Yes if anyone is on a console.
  4. Join it yourself before you invite anyone.
  5. Add your ID to adminlist.txt and restart.
  6. Set up restarts and backups. Managing your Valheim server has the routine, and How to create a backup covers the panel's backups.
  7. Share the address or the join code.

Common problems

What you see Cause Fix
Server stops right after starting, Error bad password: in the console Password too short, or the world name or seed contains it Pick a password that isn't part of the world name
"Wrong password" Typo, or the server hasn't restarted since you changed it Restart, then check the Server Password field
"Incompatible version" The player's game and the server are on different builds Restart with Automatic Steam Updates on, and have the player update. Version mismatch covers stuck updates and branches
"Server full" Every slot is taken Wait, or kick someone idle
"The server owner does not allow users from other platforms than their own to play on their server." A console player trying to join with crossplay off Set Enable Crossplay to Yes and restart
Not in the Community list The list is slow, or Server Visibility is Private Join by IP. Set Public if you want it listed
A new, empty world World File Name changed to a name that doesn't exist yet Set the exact old name back, including capitals, and restart
"Error loading world file. Check backups!" A damaged world save Stop the server and restore a backup. Uploading a world covers the file layout

FAQ

How much RAM does a Valheim dedicated server need?

Iron Gate doesn't publish a figure. Of the 37 Valheim servers on our panel on 28 October 2026, 27 run with 8 GB and the rest with 10 to 16 GB.

Do I need to buy Valheim to run a dedicated server?

No. Valheim Dedicated Server is a free tool on Steam, and SteamCMD downloads it anonymously as app 896660. Players still need the game to join.

What ports does a Valheim server use?

2456 and 2457 by default: the port you set, plus the next one. On your own machine, forward both for the Steam backend. A crossplay server doesn't need port forwarding, according to Iron Gate. On our servers the panel opens both.

Can I host a Valheim dedicated server on Xbox, PS5 or Switch 2?

No. Consoles can join a dedicated server but can't run one. The server has to run on Windows or Linux with crossplay on, and console players join it by name or by join code.

Will my old world work on Valheim 1.0?

Yes. Iron Gate's 1.0 FAQ says older worlds get the new content, but "biome generation will only work properly on areas that have not yet been explored", and it still recommends a fresh world for the full 1.0 experience. Uploading an existing world covers moving one onto the server.