October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
VGSources
Blog

How to Install a Valheim Server With SteamCMD

A practical Linux guide to installing Valheim's dedicated server with SteamCMD, configuring its world and password, opening the right UDP ports, and keeping it updated.
Length7 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A Valheim dedicated server is installed through SteamCMD as Steam application 896660. On a Linux host, install SteamCMD, run +app_update 896660 validate, start valheim_server.x86_64 with the server name, world, password and port you want, then allow UDP ports 2456 and 2457. Players can use the community browser or add +connect server-ip:port to Valheim’s own Steam launch options.

The procedure below is written for a Linux shell and uses the launch arguments documented consistently by community server guides. Keep the server updated whenever the game updates; a client and dedicated server on different builds generally cannot play together.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose where the server will run

You need a machine that can remain online while people play. Three arrangements are common:

Location What you control Main trade-off
Home Linux machine Files, launch options, firewall and router Lowest direct hosting cost, but you must handle port forwarding, power, bandwidth and uptime
Linux VPS Operating system, server files and firewall Always-on availability is easier, but you must administer the host and its network rules
Rented game-server host Usually the Valheim installation and settings exposed by its control panel Less setup work, while the provider controls much of the underlying system

The commands in this guide assume you have shell access, permission to install packages, enough disk space for the game and worlds, and a fixed address or hostname that your players can reach. Install SteamCMD using the package supplied by your Linux distribution or hosting provider, then verify that typing steamcmd opens the SteamCMD prompt before continuing.

#1 Best Overall
Sale
Gaoye Blue Light Blocking Glasses
  • BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
  • EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
  • COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
  • LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
  • WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.

Install or update the Valheim dedicated-server files

Pick an installation directory. The path is an example; use a directory owned by the account that will run the server. The following command installs the dedicated-server app anonymously:

steamcmd +force_install_dir /srv/valheim +login anonymous +app_update 896660 validate +quit

What each part does

  • +force_install_dir /srv/valheim tells SteamCMD where to place the files.
  • +login anonymous uses Steam’s anonymous login; a personal Steam account is not required for this app.
  • +app_update 896660 installs or downloads the current dedicated-server build for Valheim.
  • validate checks the downloaded files and replaces missing or incorrect files.
  • +quit exits SteamCMD after the operation finishes.

Run the same command after a Valheim update. SteamCMD then downloads the newer build and validates the existing installation instead of creating a second copy. Always stop the running server before updating, and start it again only after SteamCMD has finished.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Start the server with launch arguments

Change to the installation directory and launch the server binary. A commonly used Linux binary name is ./valheim_server.x86_64:

Rank #2
Windex Gaming Cleaning Wipes, Pre-Moistened Wipes to Instantly Clean all Gaming Gear and Electronics, Resealable Packaging for a Freshness Lock, 25 count (Pack of 1)
  • WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
  • AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
  • PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
  • ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
  • COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed
cd /srv/valheim
./valheim_server.x86_64 -name 'My Valheim Server' -port 2456 -world 'DedicatedWorld' -password 'changeMe123' -savedir '/srv/valheim-data' -public 1

Keep the terminal open while the process runs. If your installation uses a different executable name, use the executable present in the SteamCMD installation directory. Add -crossplay at the end when you specifically want to enable Valheim’s crossplay mode:

./valheim_server.x86_64 -name 'My Valheim Server' -port 2456 -world 'DedicatedWorld' -password 'changeMe123' -savedir '/srv/valheim-data' -public 1 -crossplay

Launch-argument reference

Argument Purpose Example or permitted value
-name Name displayed in the server list -name 'My Valheim Server'
-port Base game port -port 2456; Valheim also uses the next port
-world Creates a world with this name or loads an existing world of that name -world 'DedicatedWorld'
-password Password players must enter to join -password 'changeMe123'
-savedir Directory for world data and the admin, ban and permitted lists -savedir '/srv/valheim-data'
-public Controls community-browser visibility -public 1 lists it; -public 0 keeps it out of the browser
-crossplay Enables crossplay mode Include the flag when crossplay is wanted

Name, world and password choices

-name is the label players see; it does not determine which world is loaded. The value after -world is the world identifier. Reusing that exact value is how the server opens the same world on later starts. Changing it creates or opens a different world rather than renaming the old one.

Use a password that is at least five characters long. A community guide also states that the password cannot appear in the server name; avoid that combination even if another build accepts it. Do not put the password in a public script or paste it into a chat channel. Anyone with access to the launch command can read it.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
LISEN Cell Phone Stand Phone Holder for Desk, Office Decor Gadgets for Men
  • Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
  • Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
  • Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
  • ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
  • Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)

Choosing a save directory

-savedir lets you put world files and the administrative lists in a location separate from the executable. That makes it easier to back up the data directory and replace or update the server files without touching the world. Keep the directory writable by the account running Valheim and use the same path every time you start the server. If you change it accidentally, the process can appear to have lost the world because it is looking in a different location.

Open the required network ports

Valheim uses the port selected with -port and the following port. With the default -port 2456, allow UDP 2456–2457 on the host firewall. A home server also needs matching UDP forwarding on the router from the public internet to the machine running Valheim.

  1. Allow inbound UDP 2456 and UDP 2457 in the Linux host’s firewall.
  2. If the machine is behind a router, forward UDP 2456 and UDP 2457 to its local address.
  3. Restart the Valheim process after changing the port or network rules.
  4. Give players the public IP address or hostname and the same base port you used in -port.

For a non-default port, substitute that number and the next consecutive port everywhere. For example, -port 3000 means UDP 3000 and UDP 3001, not only 3000.

Rank #4
Ledagic IC+RGBW USB Powered Led Light Bar with App & Remote Control, 2 Pack
  • Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
  • Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
  • 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
  • Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
  • USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC

What crossplay changes

The -crossplay flag enables crossplay mode and can be useful when the group uses different supported platforms. One third-party guide claims that this mode removes the need for router port forwarding, but that behavior is not established consistently enough to rely on it for every network. Follow the hosting provider’s current crossplay instructions and keep the normal UDP rules in place unless your setup clearly documents another connection path.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Make the server public or keep it IP-only

Community-browser listing

Set -public 1 to make the server eligible for the community browser. Players search for the value supplied to -name. Browser visibility is convenient, but a recognizable name and open listing make the server easier for strangers to find.

Private or direct connection

Set -public 0 when you want players to join by address or code rather than through the browser. This does not replace the password; it only changes discoverability. Share the address and password with the people you trust.

Best Value
Sale
HUANUO FlowLift™ Dual Monitor Stand, Fully Adjustable Gaming Monitor Desk Mount for 13–32″ Computer Screens, Full Motion VESA 75x75/100x100 with C-Clamp & Grommet Base, Each Arm Holds 4.4 to 19.8 lbs
  • Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
  • Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
  • Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
  • Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
  • Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Connect a player to the server

A player can join from the browser when the server is public, or use a direct Steam launch option. In the Steam client, open Valheim’s library entry, choose Properties, stay on General, and enter the following in Launch Options:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
+connect your_server_ip:your_game_port

Replace your_server_ip with the reachable address and your_game_port with the value after -port, such as:

+connect 203.0.113.25:2456

The +connect setting belongs to the player’s Valheim launch options. It is not an argument for valheim_server.x86_64, so do not append it to the server command.

Operate the server safely

Use a repeatable start command

Save the exact command you use in a private shell script or service configuration so that the name, world, port, save path and visibility do not drift between restarts. Keep the script readable and restrict its permissions because it contains the join password.

Stop before maintenance

Stop the process cleanly from the terminal before replacing files or running SteamCMD. A clean stop gives the server an opportunity to finish writing world data. After it exits, run the update command, check for errors, and launch the same start command again.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Update after every game update

Run:

steamcmd +force_install_dir /srv/valheim +login anonymous +app_update 896660 validate +quit

Then restart the server. If the server remains on an older build, players who have updated their clients may be unable to connect. Validation is also the first repair step when files are missing or corrupted.

Troubleshoot the common failure points

SteamCMD finishes, but no server binary appears

  • Confirm that +force_install_dir points to the directory you are inspecting.
  • Run the command again with validate and wait for SteamCMD to report completion.
  • Check that you are using the executable name and path present in that installation, commonly ./valheim_server.x86_64 on Linux.

The server starts, but nobody can connect

  • Confirm the process is still running and that the player is using the same port supplied to -port.
  • Allow both UDP ports: the selected port and port plus one.
  • On a home network, verify router forwarding points to the server’s current local address.
  • Check that the player is using the public address from outside the home network, not the server’s private LAN address.
  • Run SteamCMD again after a game update and restart the server to eliminate a build mismatch.

The server does not appear in the browser

  • Use -public 1 and restart the process after changing it.
  • Make sure the displayed name is exactly the value supplied to -name.
  • Check firewall and router rules for both UDP ports.
  • If browser discovery is unreliable, use the direct +connect address:port method instead.

The world looks new or progress is missing

  • Compare the current -world value with the name used when the world was created.
  • Confirm that -savedir points to the original data directory.
  • Do not start a second copy with a different save path while troubleshooting; it can create the impression that the original world disappeared.

The password is rejected

  • Retype it exactly, including capitalization.
  • Use at least five characters.
  • Ensure the password is not contained in the server name, as reported by a community guide.
  • Restart the server after editing the launch command.

Decide which connection model fits your group

Decision Option one Option two Choose based on
Where to host Home machine VPS or rented host Home hosting gives maximum control and can reduce direct cost; rented infrastructure reduces hardware and uptime work
Crossplay Without -crossplay With -crossplay Use the flag when cross-platform participation is required; verify the provider’s current networking instructions
Visibility -public 1 -public 0 Browser discoverability versus an IP-only, invitation-based server

Installation checklist

  • SteamCMD opens successfully on the Linux host.
  • The installation command targets the intended directory.
  • Steam app 896660 completes with +app_update 896660 validate.
  • The start command uses the intended name, world, password and save directory.
  • The selected UDP port and port plus one are allowed through the host firewall.
  • A home router forwards those same UDP ports to the server machine.
  • -public 1 or -public 0 matches your privacy choice.
  • Players use the server address and port, or the community browser.
  • SteamCMD is run and the server is restarted after every Valheim update.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.