NEW 📢 Black Friday: our launch offer ends 30 Nov. Up to 70% off your first month on every game!See plans
Black FridayUp to 70% off your first month, ends 30 NovEnds in 9d 02h 13mBlack FridayUp to 70% off your first month, ends 30 NovEnds in 9d 02h 13mBlack FridayUp to 70% off your first month, ends 30 NovEnds in 9d 02h 13m
Valheim artwork
Free command generator

Valheim Server Command Generator

Build the start command for your Valheim dedicated server: name, world, password, crossplay, difficulty modifiers and backups. Free, nothing to sign up for, works on any host.

Free, no sign-up
Nothing leaves your browser
Ready to paste

How to use this command

  1. Stop your Valheim server.
  2. Put the command in your start script (start_server.sh on Linux, start_headless_server.bat on Windows) in place of the existing line that starts the server.
  3. Keep the password at least 5 characters, and make sure it is not part of the server name.
  4. Open UDP ports port, port + 1 and port + 2 on your router or firewall, then start the server.

Hosting with PlayNHost? The panel sets the ports and starts the server for you. Change the name, password, world and the options in the panel under Settings.

Run your Valheim server on PlayNHost

Instant setup, DDoS protection, automatic backups and a 72-hour money-back guarantee. Change these settings in the panel, no file editing.

See plans

Questions

What ports does a Valheim server need?
Three UDP ports in a row, starting at the port you set. With the default 2456 that is 2456, 2457 and 2458.
Why does the server refuse my password?
The password must be at least 5 characters and must not be contained in the server name.
Can I change world modifiers on an existing world?
Modifiers are set when a world is created. Check the game's documentation for what can change later.

Good to know

  • Flag names follow the dedicated server manual that ships with the game. Valheim changes between updates, so check the manual in your server folder if an option is rejected.
  • World modifiers and presets only apply to a new world or are set when the world is created. See the game's own documentation for details.
  • Back up your world files before you change anything.