Valheim

Valheim

48 ratings
Valheim Dedicated Game Server (uMod Support)
By Reaper and 1 collaborators
Follow these steps exactly to quickly and easily set up your very own custom Valheim dedicated server. If you like to purchase a permanent server see the "Dedicated Server Hosting" below.
2
5
   
Award
Favorite
Favorited
Unfavorite
Introduction
Follow these steps exactly to quickly and easily set up your very own custom Valheim dedicated server.

Hosting your own local server
Downloading Server Files
Outside of Valheim, open up your Steam Library and search for "Valheim Dedicated Server". If you own Valheim, you also own this little tool that comes with it.


Download and install the Valheim Dedicated Server tool, just like you would with any Steam game. But don't run it yet! First, right-click the tool in your Steam library and go to "Manage -> Browse Local Files".


Configuration
In the window that appears, find the file named "start_headless_server", make a copy of it, and save the copy elsewhere so you have a backup in case anything goes wrong.

Then return to the first version of the file, right-click it, and click "Edit". In the file, find the line that starts with "valheim_server" and change the following parts:


  • -name "My server"
    Give your server a name inside the quotes.
  • -port 2456
    Change the port number to the number you're using. Check Port Forwarding.
  • -world "Dedicated"
    Give your world a name. It can't contain any words used in the server name.
  • -password "Secret"
    Give your server a password to make it private, or leave it blank to make it public.
  • -savedir "/worlds/"
    Overrides the default save path where Worlds and permission-files are stored.

Now save the file, close it, and run the Valheim Dedicated Server tool in Steam. Wait for the window to finish loading and printing lines. Once you see the line "Game Server Connected", you can go back into Valheim and you should see the world appear in your list of worlds for you to join and start playing!

If you want to stop your Valheim dedicated server, then check if there's a server window that just tells you to hit any key to stop the server. If there is one, then focus on that window and hit any key to close the server down. If there is no such window, then either click the "X" on the main server window or head to the Valheim Dedicated Server tool page on Steam and click "Stop".

And yes, you can run the dedicated server tool in the background and play Valheim on the same PC. You don't have to run them on separate machines.
Setting up uMod
Windows
In Powershell run the following command (copy & paste all)
&powershell -NoProfile -ExecutionPolicy unrestricted -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12;&([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://umod.io/umod-develop.ps1')))"

Linux
In Terminal run the following commands
curl -sSL https://umod.io/umod-develop.sh | bash /dev/stdin
. ~/.profile

Regardless of OS
Whilst still in Terminal or Powershell run the following commands:
cd "/path/to/server"
umod install valheim -P

You know have uMod installed.
Dedicated Server Hosting
For a permanent solution, we recommend using a server host. This will be on 24/7 so you never have to worry about maintaining your server.

Site: https://www.goodgamehosting.com.
Discord: https://discord.gg/kC4udup
54 Comments
Starclaw 18 Oct, 2023 @ 6:00pm 
__/\___/\__
[''''''.'''''.'''''''''] THIS
[''''''''''.'''''''''''] IS
['''''''''/\''''''''''] MewoMewo
------------- COPY PASTE HER
'''''''''''''''TO TAKE OVER
'''''''''''''STEAM AND WORKSHOP
''''''''''LOOK AT HER YOU CAN'T
'''''''NOT COPY AND PASTE HER WITH
''''HER CUTE KITTY FACE
Reaper  [author] 3 Mar, 2021 @ 4:11pm 
Join the discord above, we can probs get this sorted for you.
Reaper  [author] 3 Mar, 2021 @ 4:11pm 
[myhv] You should get the following in console.

[code]12:10 AM [Info] [Valheim] uMod version 1.0.1102 running on Valheim server version 0.147.3[/code]
myhv 3 Mar, 2021 @ 12:32pm 
I did, but I do not see umod folder, as in installation instructions. It did create this folder: steamapps\common\Valheim dedicated server\valheim_server_Data

Not sure if that's correct. Either way, can I somehow see if the mod/plugin are working? Is there some output in the server cmd?
Reaper  [author] 3 Mar, 2021 @ 9:57am 
[myhv] When you run the server, it should create the folders for you. Have your tried running the server first? You dont need to stop the server to install addons.
myhv 3 Mar, 2021 @ 7:06am 
Actually, it did create a folder called valheim_server_data. But is there a way to check if the mod and plugin are working?
myhv 3 Mar, 2021 @ 7:02am 
I get a bunch of output ending in this:

Depot 896662 - Downloaded 552980368 bytes (984116773 bytes uncompressed)
Total downloaded: 564930784 bytes (1023663629 bytes uncompressed) from 2 depots
Disconnected from Steam
Core installed
Valheim server installed
App install successful

I still don't see the folders where I should install plugin, or a way to check if umod is running or not.
Reaper  [author] 3 Mar, 2021 @ 6:08am 
[myhv] What happends when you run "umod install valheim -P", what is the output?
myhv 2 Mar, 2021 @ 4:25pm 
I get the message saying it's installed correctly, all is good, but when I launch the server, no mod folders are created.
Reaper  [author] 25 Feb, 2021 @ 2:35pm 
[Rislem] Hi mate, when are you getting these errors? Installing uMod?