Valheim

How to Host a Valheim Dedicated Server on Windows (with Crossplay)

Set up a Valheim 1.0 dedicated server on a Windows PC: SteamCMD app 896660, a start script, ports 2456-2457, the -crossplay switch for Xbox, PS5 and Switch 2 friends, backups, and when renting makes more sense.

· 12 min read

A wooden desk with a monitor, keyboard and mouse

Valheim reached 1.0 on September 9, 2026, and it now runs on PC, Xbox, PlayStation 5 and Nintendo Switch 2 with crossplay between them. Consoles cannot run a dedicated server, so if your group wants a world that stays up when the host logs off, someone has to run the free Valheim Dedicated Server on a PC, or rent one.

This guide covers the Windows route from Iron Gate’s own dedicated server guide and crossplay FAQ. We have not run a Valheim server on our own home setup yet, so everything here comes from those official pages and is marked as such. If a flag or folder disagrees with what you see, trust Iron Gate’s guide, which also ships as a PDF in the server folder.

Self-host or rent?

Host it yourself if you already have a Windows PC that can stay on while people play. The server is a free download, there is no monthly fee, and the world files sit on your own disk. With -crossplay you do not even need to forward a port.

Rent a server if no PC can stay on, your upload is weak, or you want automatic backups and updates without thinking about them. Valheim worlds are 1 to 10 players, so a small plan is usually enough.

To put numbers on it, use the server cost and requirements calculator for the electricity side, and read self-hosting vs paid hosting for the trade-offs. The calculator’s RAM presets are for ARK and Palworld, so treat its hardware numbers as a rough guide for Valheim.

Install the server

You can install it two ways. Both are free and neither needs you to own a second copy of the game.

From the Steam client: in your Library, tick Tools in the filter dropdown, find Valheim Dedicated Server, and click Install. This is Iron Gate’s documented method.

With SteamCMD (better for a PC you treat as a server): download Valve’s SteamCMD, extract it to C:\steamcmd, and run:

C:\steamcmd\steamcmd.exe +force_install_dir C:\valheimserver +login anonymous +app_update 896660 validate +quit

896660 is the Steam app ID of the Valheim Dedicated Server tool, and it downloads with an anonymous login. Run the same command again to update after a Valheim patch. Players and the server must be on the same version.

If you bought Valheim from the Microsoft Store, Iron Gate says the server comes with the game in a Server folder (for example C:\XboxGames\Valheim\Content\Server) and starts from StartHeadlessServer.bat.

Make your own start script

The server starts from start_headless_server.bat. Iron Gate recommends you copy it (for example to start_my_server.bat) and edit the copy, because Steam resets the original on every update. Open the copy in Notepad and change the line that starts with valheim_server. Leave the other lines as they are.

valheim_server -nographics -batchmode -name "My Viking Server" -port 2456 -world "Dedicated" -password "ChangeThisPassword" -public 1 -crossplay
valheim_server -nographics -batchmodeThe server, from your copy of start_headless_server.batPROGRAM-name "My Viking Server"The name shown in the server listOPTION-port 2456Uses this port AND port + 1 (2456-2457, UDP)OPTION-world "Dedicated"World name; an existing name loads that worldOPTION-password "ChangeThisPassword"Join password for playersOPTION-public 11 lists the server; 0 hides it (join by IP only)OPTION-crossplayPlayFab backend, so Xbox, PS5, Switch 2 and Microsoft Store players can joinFLAG
The Valheim launch options from Iron Gate’s dedicated server guide.

The options that matter, from Iron Gate’s list:

  • -name is what people see in the server list.
  • -port 2456 sets the port. Valheim uses that port and the next one, so the default is UDP 2456-2457.
  • -world names the world. If a world with that name already exists, it loads it.
  • -password is the join password.
  • -public 1 lists the server in the browser. -public 0 hides it, so it can only be joined by IP (Iron Gate suggests this for a LAN-only server).
  • -crossplay runs the server on the crossplay backend (PlayFab), so players on any platform can join. Without it, only Steam players can see and join.
  • -savedir moves the save folder. -saveinterval changes how often the world saves (default 1800 seconds). -backups, -backupshort and -backuplong control the automatic backups.
  • -preset and -modifier set world modifiers such as -preset hard or -modifier raids none.

Double-click your copy to start. If Windows Firewall asks, allow it. The server is ready when the window says Game server connected.

To stop it, click the server window and press Ctrl+C. Iron Gate warns that closing the window with the X may leave the server running in the background.

Crossplay, ports and how friends join

New to port forwarding? Port Forwarding for Game Servers walks through the router rule, Windows Firewall, CGNAT and how to test a UDP port properly.

Valheim has two networking modes, and they need different things from your router.

1Steam backend (no -crossplay)Only Steam players see and join it. Forward UDP 2456-2457 to the PC2Crossplay backend (-crossplay)Any platform can join. Traffic goes through a relay, so no port forward3Crossplay joinsPublic IP and port, a join code, or the server list4Crossplay gotchaYou cannot join a crossplay server by its LAN or loopback IP
Steam backend vs crossplay backend, from Iron Gate’s dedicated server guide.

Crossplay backend (-crossplay). The server sends traffic through a relay, so Iron Gate says no port forwarding is needed. Friends join by your public IP and port, by a join code, or from the server list. The one catch: you cannot join a crossplay server with its local or loopback IP, so even on the same Wi-Fi, use the public address or the join code. This is also the only way for Xbox, PS5 and Switch 2 friends to join, and Iron Gate notes that console players may need to allow crossplay in their parental controls.

Steam backend (no -crossplay). Only Steam players can join, and you must forward UDP 2456-2457 on your router to the server PC. Add a Windows Firewall rule too:

New-NetFirewallRule -DisplayName "Valheim dedicated server" -Direction Inbound -Protocol UDP -LocalPort 2456-2457 -Action Allow

If your router has no public address (CGNAT), crossplay mode is the easy way round it. For other games, see Hosting a Game Server Behind CGNAT.

Joining: in Valheim, go to Join Game, click Add server, and enter YOUR-PUBLIC-IP:2456 or the join code, then the password. For a crossplay server, the join code is in the pause menu of anyone connected, and you can click it to copy it.

Admins, bans and backups

Iron Gate’s server reads three text files in the save folder: adminlist.txt, bannedlist.txt and permittedlist.txt. Put one platform user ID per line, in the [Platform]_[User ID] form shown in the server log or in the game’s F2 panel. Adding anyone to permittedlist.txt blocks everyone who is not on it. Admins can open the console with F5 to kick, ban and unban players.

By default, worlds and those files live in %USERPROFILE%\AppData\LocalLow\IronGate\Valheim on Windows. The server keeps its own rolling backups (by default one about two hours old and three 12 hours apart). Still copy that folder to another drive or a cloud folder on a schedule: a backup on the same disk does not survive a dead disk. The backup and restore guide shows the stop, copy and restore routine for ARK and Palworld, and the same idea works here.

Common problems

Console friends cannot see the server. Make sure the launch line has -crossplay, that their console allows crossplay, and that everyone is on the same Valheim version. Give them the join code if searching does not work.

It works for friends but not for you on the same network. That is expected on the crossplay backend. Join with the public IP and port or the join code, not the LAN IP.

Steam friends time out (no -crossplay). Check the forward covers both 2456 and 2457, the firewall rule exists, and you gave out the public IP. Test from a phone on mobile data, not from the same Wi-Fi.

Two servers on one PC. Give each its own port range (for example 2456 and 2458), with its own -world and start script. If several crossplay servers share a port on the same PC, Iron Gate’s -instanceid option with a different value for each keeps their crossplay IDs apart.

FAQ

Is the Valheim dedicated server free? Yes. It is a free tool on Steam (app 896660) and downloads anonymously with SteamCMD.

Can I host a Valheim dedicated server on Xbox or PS5? No. Iron Gate says you cannot set up a dedicated server on an Xbox. Consoles can join a PC-hosted or rented server that has crossplay enabled.

Do I need to port forward for crossplay? Not according to Iron Gate: the crossplay backend uses a relay. You only forward UDP 2456-2457 for the Steam backend.

How many players can join? Valheim is a game for 1 to 10 players, including on 1.0.


DIY Game Hosting is an unofficial fan site. It is not affiliated with Iron Gate Studio, Coffee Stain Publishing, Valve, Microsoft, Sony or Nintendo. Hosting ARK or Palworld too? Our free Windows server managers handle those.