#dedicated-server
1 messages Β· Page 3 of 1
the advantage for me is subjective - I use the ubuntu server to self host other things too, valheim is just an added plus. and its easy to add it to systemctl as a service so it starts on server reboot so its always running 24/7. just another thing to add to a nerdy hobby really.
objectively, is it easier, simpler, more efficient to host it on ubuntu headless? probably not. it's definitely easier to just download the dedicated server with the desktop Steam client and run it 24/7 that way instead. and for a lot of people thats probably the best. but for me, what's the fun in that? lol
although, there seems to be bit of a performance boost(slight) when connecting to a server vs hosting a world on my desktop, so there's that
OIC thanks for explaining that. Personally, I've moved up to NoMachine remote control for my server box also running Debian Linux and never looked back. The increase in communication over SSH is very significant for me. And well worth any increase (currently unnoticeable) in terms of server box resources. NoMachine is free for personal use.
interesting, now checking out NoMachine's website. I'll have to give it a try sometime.
It works equally well on Linux or Windows OS, if that's your daily driver. π
π
Justin was right by the way, i was on the public test branch, and I fixed the problem. i seemed to have some leftover config from the public test over a year ago that re enabled it again.
for anyone searching this in the future, if you have "incompatible version" problems on your linux dedicated server, and it hosted the public test branch in the past, here is what worked for me:
navigate to your server directory, then to steamapps folder. for me its Valheim/steamapps
in that folder is a file titled appmannifest_896660.acf with some json
at the bottom of it are "UserConfig" and "MountedConfig" objects
if they contain references to "public beta" or "public test", delete those lines, save the file, and restart your valheim server
this also means it was not a problem with the valheim dedicated server itself, just some leftover json in a steamCMD config file
Good info. Thanks for sharing it! π
Another way to revert to the stable/public branch is to update the local depot passing -beta public to SteamCMD when installing/updating
Does anyone know how mods work on a crossplay server? I know that the Xbox players wouldn't be able to install/use mods but if I put something like the "Plant Everything" mod on the server would the PC players be able to utilize it, or would there be errors that prevent the Xbox players from joining the server?
Ah, disregard this. I'm going to leave the comment but after some searching I've found some reddit discussions that lead me to believe that yes it is possible for Xbox players to join a modder server despite not being able to use the mods
It's true that server mods in general won't prevent Xbox users from joining a server. However, there are quite a few mods that require all players to have the mod on their game as well as on the server. Those mods will prevent the Xbox user from joining the server.
Thank you, I guess the only way to know for certain is to add the mods one at a time and see if it's still joinable. I'm avoiding adding too many mods but hoping that "No AFK Raids", "Plant Everything", and potentially "Protective Wards" work but the ward one seems to add some functions I could see creating issues. The reddit post I found indicated that the AFK one was benefiting his Xbox players on Xplay so I'm hoping I can get that one and a few QoL mods working.
Two things that may help your search. First, check the mod's web page to see if it says both 'server' and 'client' or just 'client'. Second, check the mod's config file and see if you can turn 'server sync' on/off and, if so, set that to 'off'. π
We should make sure that mods discussion happens in #mods-discussion or #mods-issues , this channel is for supporting the unmodified base game π
Ah, my apologizes. I felt this channel might better reach someone who had experience with putting mods on crossplay dedicated servers but I'll direct any further questions about this topic to that one
It's fine π Just trying to keep things so that when people search in the backlogs they don't get answers that don't apply or are confusing.
Hey all, I set up a dedicated server last night. I've done it on Windows using Steam actual. I believe I've done all the port forwarding and firewall things correctly. I'm running it on a laptop but playing on a different computer (desktop).
Last night I was able to access the server no problem from my desktop. I left the server up overnight to test it. This morning I tried to log in from my desktop and it would not connect. I had to close the cmd prompt and rerun the server from the laptop to get it to work.
I messed with my laptop's settings to make sure it wouldn't turn off or anything during the day. Got home this afternoon and had to go through the process again of restarting it on the laptop before I could access it on the desktop.
Is there some sort of setting or common problem that causes servers to go offline? I haven't yet tested actually playing the game for an extensive period to see if I get DCd after X amount of time
If you haven't already done so, check your Laptop's Windows 'Power Settings' and Screen Saver settings. Some Windows editions are set by default to power down or hibernate after a period of inactivity at the keyboard. You might find a hibernation setting in the advanced system menu. π
Thanks I'll take a look. I also downloaded a network monitor. I'm worried this laptop has hitches in internet connection at random times, even hard wired into the router
If the laptop is old and unused, you may want to consider wiping the disk and installing a new OS. There are a couple Linux distros that specialize in restoring older computers and updating their efficiency to current standards.
Any recommendations?
Check the experts on that here: https://www.techradar.com/news/best-lightweight-linux-distro#section-best-for-older-machines
Click the menu selection for 'Best for Older Machines' and review the selections they recommend for that. π
What was the issue with linux servers that has been fixed now?
I run Valheim through a container via AMP
Also very interested in what that was
They probably have more info on that in the #linux channel. π
Ah I see I was just curious, thank you.
Yeah, it's a good question. Worth discussing. π
How is dedicated server performance out-of-the-box these days? I have a 64u/128g server it will be running on. I'm expecting 10 players on for Ashlands. I used to have to run some mods for better network settings on server/clients to have a smooth 10-player experience. All Steam clients.
It gets a little better with almost every patch. Including today's. π
if I delete valheim, or reset my pc and install it again, will my dedicated server files be saved??
Your character and world files will be saved. They exist in a completely separate folder that re-installing or re-verifying the game doesn't touch. You may not need to reinstall right now. Just go to your Steam client and re-verify the files. That should trigger an update.
oh ok, well I was just wondering because im about to reset my pc and was worried I'd lose my world files
What, exactly, do you mean by 'reset your PC' ?
like factory reset or whatever it's called
Well, you may want to copy your C:\Users\[UserID]\AppData\LocalLow\IronGate\Valheim folder to a flash drive to be sure.
alright, thanks
I actually got my dedicated server up and running on my raspberry pi a week or so ago, and my current valheim group has been playing on it ever since. There are 6 total but only 4 of us are really active. Usually there are 2-3 people connected at the same time.
Issues we've encountered:
- desyncs pretty bad when sailing for a long time with 3 or more players
- lag is brutal in Mistlands when fighting many seekers (tested with 2-4 people, pretty similar regardless of how many connections there are)
Did a bit of research on how the netcode operates to understand it better and to see if there are any potential remedies to it, but don't have anything super promising to try. So currently just continuing to play as usual and seeing how it behaves
My current theory is that its something to do with how chunk discovery is shared between the initial discoverer and everyone else who is online (perhaps parallel having to simultaneously process attacks and actions). But its a really weak theory atm
What files/folders in the valheim directory typically get updated when the devs release an update? I'm running a second dedicated server via a 2nd game folder, so steam will only update one of my servers.
\SteamLibrary\steamapps\common\Valheim dedicated server
Thank you. What I meant was which folders/files inside of that folder. I'm running mods, so I'm trying to just copy/past the updated files/folders to the 2nd server without causing any issues
oh lord. it totally depend on what we update etc
just ask the mod-creator or other mod users in #mods-issues
I switched device and the world of my dedicated server seems to be gone
I put everything on a flash drive
How can I change the world back to the one it was before?
Find the worlds_local folder on your backup drive and copy the world file pair (.db and .fwl keep the pair together) to the same folder on your new game folder.
Ok thank you I will try that
Hello,
Can you set the portal changes in the startup config, so you can transport all materials, just lige you do with -preset hammer for creative mode?
And is there a place where I can look these commands up?
Yep.
Either in the dedicated server manual or https://valheim.fandom.com/wiki/World_Modifiers
I meant for the startup commands. I know I can do it with the game client, but I don't want to boot up the game all the time to do changes π
Ah, it's in there. Just looked a the wrong place.
Thanks π
read our PDF
it's included in the install files and are pinned in this channel
you're free to add a metric ton of things to startup now
I found it.
But for some reason, there's still no cost on materials, can't figure out why
you want it gone?
it's still clunky
you apply settings. to reset them. you need to remove them, launch the server and then close it
then re-apply them :/
Initially I downlaoded the world files and used the game client to make the changes, but it got difficult to remember what servar had what, so I wanted the startup options instead.So I reset it to normal through the game before doing the startup options. But for some reason, the no cost is sticking, even after I've stopped and started the server.
I think you need to force it to use normal world modifier π€
it's far from perfect system
So no modifiers first, then stop it, add it again, and start it?
I've caught a player bringing in stacks of wood from another world. I told him I'd prefer it if he didn't do that because it ruins the sense of progression I'm hoping to maintain on the server but I'm aware I don't have any control of him doing it. I'm considering boosting the rates to incentivize gathering in the MP world but am worried that setting the rates higher would throw things out of whack. Does anyone know if there is a way to specifically boost gather rates of wood/stone items but leave other items default (hides, cores, etc.)?
Not without mods
I mean, I don't know a solution without mods.
Do you know offhand what mods might allow this? I did a quick search for "rates" and "wood" on thunderstore but nothing caught my eye at first glance
Valheim Plus did.
I think Beepin took over mostly on that so you just install everything manually
Bepinex is just a modloader, it doesn't do anything itself.
I was going to say.. I haven't messed around with modding much in Valheim but I thought Bepinex was just a plugin for enabling mods and wasn't aware if that was a feature or not
I forgot about the mod discussion channel, I'm going to move this conversation there - apologies
Is there a way for me to change the world modifiers in an existing world via the bat file?
I did...
ah... I missed the -modifier raids none.... I thought it was just about raids. I saw the presets but I didn't want to change all the elements to easy
ty
How do I force a file update, my dedicated server is stuck on 217.46
Steam says no updates available
You're already on the current version. There's no update for your game or server than that. What error is forcing you to do an update?
It finally took, the latest patch was not showing available, after several file validation checks steam gave me the update option
Glad you finally got it. Steam can get pretty busy when everyone needs something all at the same time. π
How do I set multiple modifiers in the server start script?
i.e. something like a modifer to both **resources **and deathpenalty
valheim_server -nographics -batchmode -public 1 ..... -modifier resources more -modifier deathpenalty veryeasy.
Is it like that or something else?
Thanks!
Posting the screenshot as I was timed out for presumably including links, but here was my post a bit ago if anyone could shed some light on my issue.
I cant help you with the server issue, but I can tell you why you got timed out. You tried to post a masked link, which we have automod set to block. So normal links are fine, masked links are not.
Thank you for clarifying!

I believe you could get some help with your problem in the #mods-issues channel here. The folks that hang out around there have experience with what it takes to add the sort of content you're looking for to an existing world. If you're lucky and your issue has a solution, they can also help you decide whether there are risks to doing it that way and what they are. It may take a day or two for a response as many of them are busy updating to the current patch. π
Thanks for the advice, will post there and see what I can get (with the masked link removed).
All that they really need to know is that you want to add Hildir and her locations to an existing world. Give them that for an issue and let them ask for whatever other info about your issue that they might need to help you. π
I am trying to get a server up and running
i get to "Connecting" but never get prompted for a password
port forwarding
trying tcp/udp
that worked
now to replace the game world
Valheim needs UDP
Morning all - I changed some modifiers after starting a dedicated server and now the server won't launch
is there a known issue with changing something like -modifier deathpenalty casual to -modifier deathpenalty Casual
I also reverted the changes and the server still won't launch (hence me dropping in here)
Do you see any unusual warning in the logs?
Without a clue there the first thing I would try is starting it with no modifiers at all
Logs in the console that normally pops up? If so, it's not even getting that far
I'll tool around with the modifiers some more
I don't believe they're case sensitive so it shouldn't have made a difference.
Anyone else run their server using the ich777 docker container on unraid? How do you tell if it's running the latest version of the game? How do you make it update if it's on an old one? Just restart it?
got it working again - do we know if -modifier deathpenalty casual actually works?
I am still dropping everything on death
Do you have access to the server logs? The server's version number is in there at the beginning of the log, IIRC.
What did you need to do to get it running again? And to answer your question, I've not had good experience with any of the -modifier options. I'm still using mods to do what I want with things like death penalties, etc. π
ah ty
Hello everyone.
Since two days, me and my friends can't connect to our dedicated server. It was first a incompatible server issue. We host the server on a private machine running Arch. I reistalled everything a first time and tried some steamcmd commands that i found here that seemed to be related to the issue.
Then i moved on. The problem was no longer a version problem but a "Failed to connect".
We triple checked all the settings and ports. I checked the versions on both client and server, it's matching.
For further tests, I installed the dedicated server on my laptop to reach it from my desktop and still "Failed to connect"
And now I installed the dedicated on the very same computer i play with and tried to connect on 127.0.0.1 and still "Failed to connect".
I can't be the only one facing these issues, right ?
Version is 0.217.46 for both client and server
All the involved machines are running on Gnu/Linux
Does anybody know what happens ?
Does your server use -crossplay? Are there error msgs in your server's or your game's log files? Does the server's log show that it's actually running?
Hi, thank you for your help !
I don't know if the crossplay is active by default. I'm diagnosing on my desktop computer at the moment and the dedicated server i'm running is really default. I can't tell if the crossplay is on. Should it be ? We are all running on computers and we were not aware of this option before
I see nothing concerning in the shell that opened
If your server were using -crossplay, if would be an option in your startup.sh script's exec line along with the world's name, password, port, etc. What do the last lines in the shell window indicate? Anything about the server starting up?
04/12/2024 21:23:54: Game server connected
04/12/2024 21:23:54: PlayFab reconnect server 'My server'
04/12/2024 21:23:54: Server 'My server' begin PlayFab create and join network for server
04/12/2024 21:23:56: Joined PlayFab Party network with ID "<REDACTED>"
04/12/2024 21:23:57: Created PlayFab lobby with ID "<REDACTED>", ConnectionString "<REDACTED>" and owned by "<REDACTED>"
04/12/2024 21:23:57: Session "My server" registered with join code 911851
04/12/2024 21:23:59: Session "My server" with join code 911851 and IP 144.2.106.
Here, it is really the vanilla setup just out of the freshly installed dedicated server from steam. Nothing more
Ok, that indicates that you are using -crossplay. And that changes everything about how you have to connect to that server. With crossplay, no one connects directly to the server. All server traffic goes through the MS playfab network. That means that you either connect by using the Join Code shown here (911851) instead of the server's IP address or name. Or by using the server's WAN address and port number.
Oh, okay. I'll try this out. BRB
And if i remove the crossplay, i'll then be able to connect with the local ip just like before ?
Yes.
Great. Thank you very much already. I'll check this out and come back to confirm asap
Excellent. I confirm i could connect using the code ! Thank you very much, you saved my weekend with my friends :3
@silent valley You'll get a new Join Code everytime the server restarts. Also, crossplay can be unstable at times depending on what's going on with the MS network. So, you should probably disable it whenever you get random timeouts or disconnects in the future.
When you remove crossplay, check to see that your port forwarding is current in your home router. Crossplay doesn't use port forwarding so, if the server's local IP address has changed recently, crossplay would still work but non-crossplay would need the port forwarding updated. And, of course, no Join Codes without crossplay. π
Okay, good to know that this code changes at every startup. I'll then go without it. I prefer the oldschool way. And furthermore, there is something weird when i look at the output on the dedicated server, it gives no code:
04/12/2024 21:07:17: New session server "My server" that has join code , now 0 player(s)
and the other issue is that even though i updated
steamcmd +login anonymous +app_update 896660 -beta none validate +quit
, the version is wrong on the target machine:
04/12/2024 21:07:13: Valheim version: l-0.217.38 (network version 20)
Why is the update not setting the right version ?
Try running it without the validate option.
Same result. I removed the "validate" from the command, entered and the server output is the same. Stuc on old version
I'm sorry but I don't know much about SteamCMD. Is there any way you can go directly to your Steam Client, use the game's properties to locate your dedicated server directory and then do a manual re-validate there?
The server has no GUI so it's command line only and no steam client.
But i think i'm moving forward thanks to your information about the crossplay
Thank you very much
I use NoMachine's free personal version to give my headless server box a GUI when I need one there. It works beautifully for me. π
The server works ! I removed everything for the 10th time and now everything is perfect without crossplay
All servers require passwords.
Just send the admin a DM.
i once put my world on community and i had some ramdom join - that was a couple years back tho
ok, kinda new to this, but thanks
I got a really dumb question: with the recent valheim patch, if I update my server valheim using steamcmd on headless install on linux, is there any way to roll back to previous version, in case I experience issues?
Also... is there a way to see what version a dedicated server is running without launching into the game itself from a client?
Disregard 2nd one, it states version on bootup in the log.
There's a build that has the previous release, yes, but I'm not sure of the name of the top of my head. You can find it in the Steam UI under the beta participation info, I believe you can just specify that build through steamcmd
sweet! ty!
is this the way to add admins to ones server?
Assuming we're looking at the adminlist text file in your %APPDATA%/LocalLow/IronGate/Valheim folder, then Yes. That's right.
Hello everyone, everything good? I need help with a dedicated server I created in the game. I was playing normally with my friends but now I can't connect to it anymore. I've already updated the game on steamcmd and on steam too, what could be happening? Ports 2456 to 2458 are free on my internet router and I'm using Google's DNS. I update the game in steamcmd too with the command app_update 896660
See if you have the -crossplay option in your start up server start up. If so, remove it.
Did the recent game patch cause it? Or was it working ok between now and three days ago? Are you or the server using any mods?
Check your player.log file and the server's log, if you have access. And see what the errors are there.
Before yesterday it was working normally, I don't use mods but some of the players on the server do.
I will look for this, thanks!
Even if my friends are not online, can mods interfere?
The server you're talking about is the in-game one you create from within the game's start up screen? Or is it a stand alone server program running on another PC, or a remote host, or even on your game PC but not part of the Valheim game program?
The server is mine, created through the "valhein dedicated server", I installed steamcmd and entered anonymously and downloaded the game there. I changed my router settings and released ports 2456 to 2458 to be able to enter. Everything is running locally on my machine.
Sorry for the delay, my english isn't that good, Im translating some words.
this is de bat
i remove the command -crossplay
Use the geekstrom.de/valheim/check website to see if your server is actually up and running and available from the internet or not.
and this is my steamcmd when i update the game
ok, one moment
I'm sorry I just don't know enough about SteamCMD to be of much help.
On the website my server is not online but in the game it is haha. and it appears that my friends are also online.
Is your game the wrong version?
No problem friend, I really appreciate the help everyone has given.
is updated as well as the server
saddd kkkk but its ok
Getting that Join Code means the server is still running with -crossplay.
You'll have to use the Join Code or the EXTERNAL IP address and port to connect.
I managed to make it WORK
thanks man!!! i remove the commands -cros and put again
but the IP changed too
Good day everyone. First time question. I started a dedicated server about 2 weeks ago and everything ran perfectly we played 5 people simultaneously no problems. I set the port forwarding and added the firewall rules. But tonight when I tried to connect it kept on saying failed to connect. I see the server in the community list, aka it picks it up but no matter how many times I try it keeps saying failed to connect. I reset my router. I've uninstalled the dedicated server reconfigured everything but to no avail. Does any one know if something maybe changed which I'm not aware of? Or what could possibly be the problem?
There are no errors in die cmd terminal, it shows ready as it did previously. When I tried to connect previously it would show the attempt of connecting, now nothing is shown.
There was an update that dropped recently, have you updated your client and server to the latest? Are you using mods?
No mods no. I have updated both. Reinstalled the dedicated server and my client is on auto update.
Hmm...can you verify that your IP hasn't changed? Can you connect using the internal IP on your LAN?
I did double check the IP and it remained the same. I tried to connect using the IP and port but it didn't seem to work, not sure if I did it correct because I never connected that way. I can try again to double check.
Do you use the -crossplay option?
And do you understand the difference between an internal and external IP? (forgive me if this seems nitpicky, best not to make any assumptions)?
When you supply the IP+port it's should be in the usual format of xxx.xxx.xxx.xxx:xxxx (IP:port). When you connected previously without any problems, did you use a join code instead of the IP?
sorry for my absence. There was something that required my attention.
I do know the difference between internal and external IP.
I have however never connected to the dedicated server using the IP. We usually look for the dedicated server in the community list and connect via that way. Thereafter we go to either recent or favorite to ensure I go directly to the right server.
I will try to connect using the external IP and port to eliminate the possible cause.
I've tried connecting with the external IP and port, the internal IP and port listed in the dedicated server terminal as well as the join code and all of them end up with failed to connect.
I have the crossplay set in the bat file yes, as it was set previously (when ot worked.)
Check your game's player.log file for errors. And you should be able check the server log for errors, too. Although, generally the server is up and running ok, if it's giving you a Join Code.
thanks I'll check
it wasn't up when I first checked.
I then re-added the port forwarding and remove the -crossplay from the bat file. (also restarted everything)
When I checked again geekstorm said the server was up.
I was able to connect again. I don't quite understand the use of the -corssplay option but thank you @proven niche and @outer goblet your input and advice helped solve the issue and it is really appreciated! Have a nice weekend!
My understanding is that the -crossplay option creates a connection port via Microsoft's Playfab to allow Xbox players to join your server. If you only play with Steam (PC) clients, it isn't needed. However, I thought you could also join via IP:port even if the -crossplay option was used. I might be mistaken by this. Glad you got it working. Did you have to re-add the port forwarding on your router because it was factory reset? (Just out of curiosity, for future troubleshooting).
Thanks for the explenation it is quite insightful.
When geekstorm said the server was not accessible I deduced that either the port was locked and needed to be released or somthing of the sort. So I double checked the firewall rules (removed and added again) and rebooted te server pc. and went onto the router and removed the portforwarding rule and readded it, as well as the crossplay. I didn't reset the router but I did restart it.
The external IP still didn't change, therefore the above is unfortunately only an assumption. I wish I could have definatively identified the problem for future help.
Yeah, sounds like you just went through all the steps to reset all the ports and firewall access to be the same as before. Strange. When I upgraded my server and client, it worked right off, no need to reinitialize the ports or anything. Just to clarify, you added the -crossplay option again, restarted the server, then stopped it, removed it, and restarted it again? So you are currently playing with or without crossplay and you are connecting via IP:port?
I did not re-add the crossplay option. The friends on the servers uses PCs to play so from your explanation it will not be needed. I'm currently playing without crossplay. I checked that the server is accessible via the site and searched for the server in the community list and accessed it via that route so no direct IP or join code used.
start basic with minimal setup first then go from there
got a question for you guys. I got a dedicated server and I wonder if theres any way to prevent people to use Wemod or any 3rd pary app that provides cheating like that ? I know for a fact that the game doesnt provide it as vanilla or integral support so I guess I'm looking at a certain plugin, app or even mod to some extent ?
Hey, I got a noob question. I had an existing world that I wanted to use for a dedicated server but when I log in it's a different world, what could be the issue? -world is the parameter to use the same name for, right?
(using the steam valheimd dedicated server app)
Did you manually move the world files. From the existing location you were playing on to the worlds_local directory on the dedicated server where it looks for the world?
Also, the world has a pair of files that must be kept together. The .db and the .fwl. π
Hello I'm thinking of creating a dedicated server, does anyone know a simple tutorial video or website that I can watch or read to get started. Would appreciate suggestions as well thanks!
Start with a thorough reading and understanding of the dedicated server manual .pdf that comes with the Server Tool download from Steam.
Then have a look at Youtube for specific info that might suit your purposes for exactly what kind of server you want to create. Which tutorials there are best is totally a personal thing as to which ones work best for you specifically.
Good luck with it! Have fun. π
There's a couple of good guides linked in this channel too.
Oh yeah just noticed Thanks!
Thank you!
ive seemed to have cocked up my valhiem folders/file orders after a server re-build, i have a tonne a files saved but which ones do i need to reload my currents world and in what order do they need to be in?
If it's just the server then I think you only care about the world files and maybe some admin stuff. For world files
- myworldname.fwl
- myworldname.db
.. usually found in world_local
You might consider saving these as well
- adminlist.txt
- bannedlist.txt
- permittedlist.txt
Not sure what you mean by "order" since that should not matter but the nested structure would matter
my server has been updated and verified yet when i try to connect i get the following error
^
Update the server to the current version after the recent patch.
i just updated it, it won't update anymore
How did you update it?
steamcmd
Might help if you paste the cmd here, something must be missing so logs and CMD code would help confirm
Did you run the app_update 896660 command?
yeah it's there
my batch
it worked fine before, so i'm confused as to why it isn't now
you check c: for a Valheim folder, spaces in dir paths mess with things when you dont put the path in "
When you install and run a dedicated server with SteamCMD, can you still update the Server Tool manually? Or is that no longer possible?
Is your server running on a Windows or Linux host OS?
windows 10 home
Ok. I guess I'll have to find out about the manual update elsewhere. NP
its same command dont matter os
Yes, but I thought that Linux is more sensitive to spaces in paths than Windows is. You might need the quotes for Linux but not for Windows.
This is mine. I am running on a windows 10 pro machine. Might help with troubleshooting as its literally one line
C:\steamcmd\steamcmd.exe +login anonymous +force_install_dir S:\Games\ValheimServer +app_update 896660 validate +exit
That app id is not the same as me and @proven niche , anyone know why? UPDATE: nvm, had to scroll to see it being set
even with windows paths in a bat file should be in " " if they have spaces
The quotes should be easy to check...do you have a C:\Valheim directory and/or a C:\Valheim Server directory?
I wonder if his server is actually up to date and his game is on the PTB, which is a 'newer' version number?
Is there a way to check your dedicated server version number?
PTB and official are same right now
When you install and run your server with SteamCMD can you still update the server manually without SteamCMD?
you dont run a server with steamcmd, steamcmd is a command line version of steam client used to download games
Right. So the answer to my question is ???
I don't think you can update it without SteamCMD...SteamCMD is what you use to update it.
your question makes no sense, steamcmd dont run the server, and what you going to use to manually update the server besides a version of steam
Could you concievably copy the updated files from someone else's server and just clobber over the directory (minus the world and character save files)?
So you couldn't go to the server host PC, logon to Steam there and go to the Steam Library Valheim Server Took icon's Properties menu and update the server from there?
IF they are on the same computer, they are essentially the same thing.
SteamCMD is just a command line interface for steam.
steam client and steamcmd are the same one has a GUI other dont, they made by the same people
Did you even read my post?
If you are running your dedicated server on a windows system and it's the same system as you run the game client, then I'd imagine you can update it via the Steam GUI as you mentioned. Just make sure it is pointing to the correct file location as when you launch the dedicated server. Otherwise, it would download another copy of the dedicated server to a completely different location and you would still be loading the outdated version of the server using the batch file.
im trying to get my dedi up and running its proving to be a fn nightmare
excuse the french
Where are you stuck Zed? Windows/Linux/DockerImage?
Exactly. Thank you.
To be honest, I've never updated or installed the server via the Steam client, so I don't know how you would do that, or where it puts the files by default. π¦
i had my dedi running perfectly on my network, just clicked on the val BAT file , logged into valheim, added my ip with :2456 , then i was good to go , now i wanna cry
puts it same place it downloads every game to, if you dont change location
The Server Tool properties menu shows you exactly where the files are and lets you change that to where ever you want.
i cant even load a saved world .db fwl, wwwwaaahhhhh
Are you using mods on the server?
Did you make a new .bat file or .sh or did you use the default one that gets clobbered when you update the server?
Check your server's log file for errors. Maybe that will show what's wrong.
ive downloaded a fresh install from cmd, the way ive always done it in the past..
When you say 'cmd', you meant SteamCMD?
Where is the server's log file?
i put my db and fwl files , in worlds folder right?
Yes, but you also have to tell the batch file which world to load (which should match the name of the .db/.fwl files exactly.
should be in worlds_local
yes , ive done that
figured it out, i had to "c:\Valheim Server"
then edit the batch file to the same name as my save world file?
There should be an argument in the .bat file for -world "worldname" make that match the world.db file name (minus the .db)
yep. thats what i ment, ive done that
When you launch the server, what happens? Do you get a different new world instead of your old one?
i get the spinning hammer, then failed to connect
Sometimes it's something as silly as needing two quotation marks. π Glad it got figured.
So, you can't connect...it's not that it's the wrong world, you just can't connect.
i went through my files and noticed that it made a new folder
how do i change that?
Do you specify the save directory in your batch file? I thought the default path was supplied, but maybe it points to a different location?
that is default on windows
Yeah, so is the default path using the wrong forward or backslash in windows?
Working launch cmd and dir for comparison
Seems like it to me
What is the path to your world files? Can you open it in windows explorer, then copy the location from the windows?
is it making a new one in there
Yeah, so people who just use the default and don't make a custom -savedir path seem to be screwed?
I use a custom -savedir path and the game updated and worked fine afterwards as well.
Seems possible given this is the official server guide
Zedman try adding the argument:
-savedir "C:\Users\1337bonkz\AppData\LocalLow\Irongate\Valheim\world_local"
to your .bat file after the -world Dedicated line. AND is Dedicated the name of your world file?
@quartz mason ^
I'd imagine if the default location has always been busted, more people would complain about it.
I agree but I'm leaving it as a possibility
C:/Users/1337bonkz/AppData/LocalLow/IronGate/Valheim will work in windows also
its also possible it was from a guide elsewhere that was copy/pastes from a non-windows ENV
no harm in reducing the number of variables at play for the issue though
Yeah, so maybe it's not the slashes, but something else. Waiting on @quartz mason to respond verifying that that's the name of the world.
ok, im here, just typing some stuff in..
If the world file doesn't exist, I believe the default action is it creates a new world file with that name at the specified location. So you should still be able to connect to it, it will just be a new world and not your saved world. It may take a little while for it to load, and you shoul wait till you see "Game Server Started" in the console before trying to connect.
So probably what would help us is if you posted the .bat file and the server log file in its entirety once started.
there is no server log by default
I mean, the command line output from when you start the server. If you can't post it all, just the end tail would be helpful.
If it turns out that the server is up and running but you just can't connect, it might be due to something new going on with a VPN or Firewall change on the server's PC. Maybe a Windows update changed something there. Or maybe an IP address got auto-updated by the ISP or router.
see the thing i cant even connect to "new world" on my dedi server let alone a saved world....gggrr
Yes, there is two issues...we'll try to help with both.
its annoying because it was good for years, now no dice
if bat has -crossplay in it you need to use your wan ip to connect to it
Did you verify that your IP is the same? Try removing -crossplay and using your internal IP...does that connect?
crossplay dont need any port forwarding
If your internal or external IP has changed, port forwarding will be hosed, but you should still be able to join using the join code, yes?
how do you remove cross play?
if you have a -crossplay option in your .bat file, remove it and restart the server. (if you don't, no need to do anything).
there is no option
Okay, can you connect via the internal IP on your local network? Does that connect?
Any setting that would let me log in on the same LAN as my server but wouldn't let someone remote log in?
Server running on a laptop, playing the game on a desktop.
It was working smoothly until I restarted the laptop and server a few hours ago. Now my friend can't connect anymore
Remove -crossplay, if you're using it. Then, disable the server's port forwarding in your home router. Then, it won't be accessible from the internet. Just from your LAN using the server's internal IP and port No.
I misworded my question
Indeed...
I WANT someone to be able to log in from the internet
Is your friend using PC and Steam game?
Yes
How much time between him being able to access the server and then not being able to?
We were experiencing some lag, I decided to shut down the server and restart the laptop a few hours ago. When I logged everything back in, neither of us could connect with the same information. For me, I realized that my laptops local IP address had changed so I re-entered the server information on the login page and was able to get it to work. They are still unable to access the game
Is the server currently using -crossplay?
I had taken that out a while ago
Should it be in? I thought I had read it could cause some connection issues
Then you need to correct the forwarding in your home router. It's trying to forward the server traffic to the wrong internal IP address.
Leave it out.
Oh yep
There it is, I see it going to the wrong address.
Next question then: Is there a way to have my laptop have the same local IP address all the time?
It depends on your particular router. Some let you adjust internal port 'leases'. Some others just never change them unless the router is restarted or power recycled. You'll have to investigate that on your router. Sometimes you can use your router's brand and model number and ask how to control internal IP address leases with Google.
Awesome, thank you so much. A hero again β€οΈ
I think they call that a "static IP address"...if you want to google up some solutions.
Make sure that you're talking to Google about "INTERNAL" IP addresses.
Hi guys, my GPORTAL server doesn't seem to be running correctly, keep getting "Failed to connect" any ideas why? It is quite heavily modded with around 175 ish mods
Was planning on running it in order to see which mods I need to take out which aren't required that are "client sided"
But can't seem to do that now lmao
Sounds like you'd find better support in one of the mod channels. Maybe #mods-issues would be best.
yeahh i managed to figure it out
Is there a simple explaination how to make a dedicated server?
The .pdf manual that comes with the Steam d/l of the Server Tool is pretty simple. π
call me a newb, but i don't get it. I don't know the first thing about what you're talking about lol. the only thing I know what you said is Steam. and pdf manual hahaha
i wish i knew more π
The best way to know more is to start reading π It all starts somewhere. Running a dedicated server directly takes a fair bit of knowledge though, you're going to have to know a bit about networking, ports, file structures and software configuration through config files instead of a UI.
And you're going to need a PC with about 8GB RAM, a decent CPU, no particular graphics and maybe about 20GB free disk space. It would be nice if you have an old one like that and can leave it on 24/7 but that's not required.
Pro Tip: There's a copy of the manual among the pinned msgs here. π
20GB!!!! Really?
My server is holding steady aroundg 4gb.
Oh, you must mean for the OS and stuff...nevermind.
Does that sound like too much? I guess you could do without so many backups.
I just googled how to setup a Valheim dedicated server, and I think it sent me to a youtube video that shows how to do it, step by step in a few minutes (depending on which OS you are using).
It's definitely better to use the manual rather than some random YouTube video that's probably out of date.
shrug it worked for me. (This was about 6 months ago...not that out of date.)
If you want to get fancy and deploy a Docker or something it can get complicated, but just to run a bare bones server is pretty simple to setup and get it running.
I'm not anti-docker or anything but I think docker, SteamCMD, and LinuxGSM all add layers of complexity that are unjustified.
Unjustified? Don't you use them at your own discretion?
I don't doubt that some experiences will be actually fine. But typically I find that it tends not to be the case.
Just ask yourself exactly what those things add to your dedicated server experience, security, or ease of management. Be honest and objective about it.
Originally I deployed a server on one of my Windows PCs. It was fairly straightforward to get SteamCMD, download the app, then edit the batch file and start the server. But then I wanted to transfer it to my home NAS system since I have it up and running 24/7 anyways. That was really the only justification for moving to use a Docker container to deploy it, otherwise I would have just kept it on my Windows PC.
I run 3 barefoot dedicated servers on the same box as my home security system and NAS and have never had any problem at all. I put a watt meter on that box and it draws as much electricity as a 30 watt lightbulb. Surprising.
Yeah, that's what I mean. If you don't need it, then don't use it. It's at your own discretion.
One of them has 158 mods. ROFL The other two are a little more reasonable. π
I just run the dedicated server directly on my gaming machine as another process, works fine π
Can you use the Steam client to download the dedicated server and then just copy the directory to a new location rather than using SteamCMD?
Yes.
Hello all, wonder if anyone can help me with some questions about ports and friends connecting on a dedicated server I'm running. Which is pretty much set save a few issues
What's your question?
I have setup a dedicated server running on windows 11 on a mini PC. It's plugged into my modem/router where I have reserved and leased a dedicated local IP to it 192.168.0.196 . Setup my ports forwarded them and some friends can connect but my sister and her partner in the same house cannot connect. It immediately fails
It works for other people, the weird thing I've noticed is that it doesn't work for people on 5g wifi networks. E.g. if I connect my PC to my phone hotspot on 5g it fails. My sister and partner have a 5g modem and they constantly cannot connect
Can see the UDP port is open on my IP. Any suggestions as to what might be causing this and how we can resolve. CGNAT? DMZ? UPNP?
Some routers don't allow loopbacks. Players in the same household and on the same LAN have to use either the internal IP address and port or, if using -crossplay, then they must use the external IP address.
The internal IP?
I should mention they are not in my household. They are in a different state
The 192.168.0.196 is an internal address. An external adderss would be the one your ISP gave you.
Every device on your LAN has it's own internal address.
Yeah I know, that's the IPv4 address that the host is using. My external address is 58.96.55.1#
And I'm using port 2457 instead of 2456 because I wasn't sure if that was the issue
Both are open
Use the 2456 port. Is the server using -crossplay or not?
I've ttied with and without crossplay (found without is faster) and also tried the public listing -public 1 in the batch config
Is the server using -crossplay or not?
Ok. Sorry I couldn't help.
Well, this problem seems to be a deeper problem for alot of people. I don't know what the solution is but I'm going to get my sister to try requesting CGNAT to be disabled and get a static IP see if that helps them.
That will always cause issues. CGNAT basically means you don't have a way to run a server of any kind, Valheim included. You can either do like you said there and get a real static IP, or you can use the crossplay option as noted before because that will work around it.
I know we have the ability to set keys and have mode through command line, but can I also do that with devcommands in the server as well?
I'm looking at different hosting services, and not all allow for setting keys through server start.
If you have the server devcommands mod installed you should be able to use the setkey command, yeah. Otherwise no.
Are there still lingering problems with using the console commands to modify the server world's configuration options? I tried it a couple days ago and had trouble with it. π€·ββοΈ
Hard to say, I've seen the occasional report but not enough to suggest there's a major issue. It's a tricky one to test.
I regularly use the setkeys command as admin on my dedicated server
Anyone had any problems recently with resetting and/or removing the keys after they've been set?
I have heard of problems with people removing them, myself included. Resetting them I have not had any issue with
Here is a resent report #dedicated-server message
I found that logging back in helps.
I was told in a server I frequent that sometimes the client has to catch up when game mode is changed and relogging takes care of that.
I imagine the admins have struggled with this a lot.
Biggest complaint was that for admins, listing the keys in console doesn't always show exact changes until re-logging is done.
Hi - is there a way to save your dedicated servers world, locally?
Have you used a direct path to the server file in your command line?
Normally I start a server from a save file that already exists rather than having it generate a new one. Then I would tell my batch file the direct path to that save and have it keep running from that.
I am not adept with server management at all. In my last server it seems to have saved locally im not sure what happened to this one.
does anyone have a UFW app profile title and description for valheim?
Does anyone know where the server logs go?
There is no log file by default, everything goes to console window
aight
I checked the wiki and can't be bothered doing that so I did that
still can't figure out whats wrong. Is the server meant to be using shaders?
it just shuts itself down after initialising
and I can't find any errors because shaders are muddying the results
You can safely ignore the shader errors.
omg is it that the password is too short
Could be
Bumping this
What kind of server is it? Rented? Running on your game PC? Running on another PC on your home LAN?
...and is it SteamCMD stright in Windows or Linux, or is it in Docker, or what? "Server" could be so many different setups...
I have a dedicated server, I'm on Xbox and my friend is on Steam. He keeps getting disconnected after a few seconds. I've switched server provider, same issue. What can this be?
Anyone have experience with running a server on a Intel NUC or similar tiny PC?
Last couple of rented servers had issues with desync, even when we were only 2 players in an area, so for Ashlands i want to run my own
Is there away to take off water damage
Not without mods. You can build wood mostly touching stone and it won't take water damage, or roofs, or darkwood and angled wood pieces, but there's no way to turn off water damage. Good news is it maxes at 50% of the piece health, so it won't get destroyed by water.
is this still a thing?
Because, i enabled it and it works
just tried it out via gamepass
I am unable to connect to my dedicated server via my local network, but I can if I join via my public IP address
Yes I just got mine fixed
I have a dell optiplex 7060 running ubuntu
I have set up a remote desktop with remmina for anything that I want to do with a GUI
although I do know how to use SSH, some things are just easier with a GUI
if you want any help dm me and I am happy to be of assistance
Is there a thing I am not understanding with how the servers work? Is it like a steam account DRM thing? why can't I just join via ip and have to route my stuff through steam's networking services
my firewall allows anything in my subnet to connect through any port
Yes, a NUC will do fine. You may run into problems if it is a lower-end Celeron with 4GiB of RAM. Generally, they are exellent for Valheim.
Do you mean crossplay? It's not a steam thing but to facilitate playing with players on other (non-PC) platforms. It has nothing to do with Steam or their DRM but gaming consoles limitedness / manufacturers locking them in / disallowing tinkering.
Disable crossplay if all players are on PC.
yeah they are, crossplay is disabled and I still can't use my local IP
will having -crossplay 0 make it crossplay still?
that may be it lol
The answer is it was...
I have spent too much time on this
Ugh
Will a i5-8500T be enough? Along with 16gb of RAM?
Seeing as i wont be using it for anything other than a valheim server, will it be able to just run win11, instead of having to play around with stuff like Linux or Ubuntu?
That is your perogative, If you don't have any linux experience just run windows 11
Perfect! Just found a very cheap Optiplex 7060 with 8gb of RAM, 8500T and 256gb SSD. Upgrading RAM will probably only be necessary if we run into issues on our playthrough.
Really hoping this solves those desync problems weve had in the past on rented servers
I have one with 16 gigs, you can upgrade the CPU as-well
they are a great little machine, super repairable and easily upgradeable with storage
Desync may have something to do with one of the clients having a bad connection or a very underpowered PC (a strong possibility given how the game works). If that's the case then your efforts may be in vain. But let's hope it is not the case :-).
if the servers are rented it is more likely a network thing
how many rented server providers have you been with?
also there is a simple way to test if your desync issues will be fixed. By hosting it on your main pc or laptop, and getting your friend to test if they experience them
then you can commit to self-hosting on a mini pc
Last time we had GTXgaming, which was by far the best experience, right up until Mistlands and our base getting too big and chests getting filled with too many items. We had problems with stuff loading in when going through portals and desync when fighting monsters in mistlands.
We are both on playing on High end pcβs and both being on 300/300 fiber internet connections
Weβve run it as just hosting the gameworld as a server when loading it up, never having issues - idk if that counts
it could be the location of the server is bad for routing through the network cables (idk the technical term, but you get the point)
one weak link could cause packet loss. if you self host right now and don't have any issues, selfhosting on a optiplex should be good.
is there someone else who are having problems running dedicated server on same steam account? one logges out the other client and server.
Hi everyone,
I have been playing Valheim for a while now together with my friends.
But at some point - when I moved to another country, I couldn't connect to the servers (both to dedicated and private) anymore.
I tried some random servers from the list - some of them work, some of them not.
FYI:
- Valheim is in exception for Firewall.
- Some time ago, I was cleaning my file system and deleted everything from ROAMING, APPDATA etc.
Please do you guys have any hints how to fix it? I'm eager to continue playing.
Any help will be much appreciated.
Cheers.
How do i update a server for the ashlands
I made my own private server on a separate pc for the first time
Ashlands has yet to be released. Are you asking how to participate in PTB when it's released for testing?
Yes
The instructions for participating are probably going to be the same for dedicated server as they are for a local installation, you might want to try asking in #valheim-public-test but it's possible someone might chime in with some dedicated server specific info here.
i have a dedicated own hosted server.
I have crossplay enabled.
Is this causing lags
?
is this a know bug, if crossplay is enbabled, it lags+
If crossplay is going to cause problems it's more likely to be "Failure to Connect" or random disconnects. There are a lot of different causes for lag. Usually not crossplay.
I have managed to set up a dedicated server hosted on a mini pc for my friends and I. I use ubuntu server, however I have set up gnome for me to remote desktop into it. I used steamcmd to install valheim and I can't get r2modman to recognise my game folder. I would prefer not having to use a GUI or have to open r2modman to launch my dedicated server. any suggestions?
Also r2modman requires me to select a steam installation directory which is completely impossible because I manually decided the location of the server and I installed steamcmd, not steam.
Does anyone here have experience setting up a local server in a docker via open vpn in a VPS?
Hey guys! Im getting incompatible version with the PTR on ashlands
This is on my dedicated server. Do you guys have an idea how to fix it?
Both client and server need to be on it and PTB issues go in #valheim-public-test
Thank you!
Can we run ptb on a nitrado sever
HI I am new here, is there any recommendation for good hosting aka renting server for Valheim? I mean pay 3rd side for running my private server. Thank you very much for any tips!
see channel topic. "We cannot help you with 3rd party hosting sites or give advise which one you should buy/rent"
hello,
I've setup beta version of Valheim Dedicated Server and it works, but it doesnt see my world when I log in - any suggestions? I used (on Windows PC) path C:\Users\YOURNAME\AppData\LocalLow\IronGate\Valheim\worlds to include my world saves
Nope password is wrong, and PTB stuff belongs is #valheim-public-test
Does the recall command not work on dedicated servers? I suppose this might be more for the mod channel since I'm using devcommands on the dedicated and can't get recall *player to do anything. Any idea?
does dedicated server need to use a different update branch for the PTS? I am running on linux using steamcmd, and I ran the standard update command
Need to use the public test branch, and all things related to PTB go in #valheim-public-test
how do I update a dedicated server to a different branch using steamcmd? Is there a tag I can add?
Pinned messages in #valheim-public-test has the steamcmd
maybe I'm blind? I looked through a few times now and still can't find it
4th from the bottom
uhh whats the name of the firehazard key? to enable/disable fire hazards in dedicated servers
Try asking in the PTB channel.
It's quit early to worry about this, but when Ashland drops into Live in the future, what should we have in mind about the map-re-generation of our server-world? We see it takes place in PTB, when they load into their game, and it takes some time.
Any advice how to load into a server world (after it drops onto Live in the future)?
(Started my first server long after Hildir-Update)
Would love to see where in that article there is a "how-to" regarding map-re-gen on ongoing worlds hosted on private server.
Im running a docker container for a valheim dedicated server. Do anyone know how to enroll in the public test? Its running on a linux container
My docker have a Environment Variable to enable that. Haven't tested it.
I have the same issue! Realy want to know π
Which docker container did you download?
so it runs Valheim l-0.217.46
Then, go to it's README file where you downloaded it and look in the environment variables section.
And you can Ctrl+F search the README file for "beta" and make it quicker.
Thanks! Turned "blind" reading it the first (5) times π
It's a big file. Easy to miss things... π
And when some one holds your hand...
As soon as you ask for help, you find the issue π
this worked for my compose file:
SERVER_PUBLIC=false
STEAMCMD_ARGS="-beta public-test -betapassword yesimadebackups"
I did not even have to add STEAMCMD
I'm using a headless server. I have added in the -beta public-test -beatapassword yesimadebackups to the modifiers lines and it still will shows when I try to connect with my game clines that the CL beta is FALSE. Should this be in the modifiers area, or up in the top where the game code and update sit?
Has anyone here had experience setting up a server behind NginxProxyManager? Tried doing a search with no luck in the chats.
I'm trying to figure this out too right now.
I feel like you have to DL additional public beta server app steam files though, you can't just modify the startup script to say yeah beta go
oh wait - duh - yeah those are the steamcmd config file updates that you need to do, the server launches normally then
Out of curiosity. My dedicated server in the past that had the Mistlands explored (pre-Mistlands release), they were all just plain mountains with enemies... no infested mines...etc. So I had to start a new server. Is the Ashlands update projected to be the same case or am I safe with an older server?
Yes, anywhere you've explored won't be updated.
Thank you. Still worried there might be some risk if I use an older server that never explored them. I'll give it a shot
Idk if the error that I get is something generic or if was something with my save but when I tried to make the coversion of the save from mistlands to the ashlands via dedicated server the save got corrupted, but when I made it in the singleplayer it worked normally, but I think this is something that you need to worry about and make an backup
how can i change modifiers on my server that is running on a seperate pc
im using the valheim dedicated server tool on my seperated pc
Two ways to do that. One is to take the world files to your solo game and make the modifications there. And, then take it back to the server.
The other way is to use console commands while playing on the server to make the modifications. In order to do that, you need admin access to the server and load up ServerDevcommands on your game. You can find the exact commands you want with a search of the Valheim WIKI.
i would have to make myself admin
Yes, you need to have your Steam64ID (the one with the 17 numbers in it) added to the server's adminlist text file. (It's in the F2 window while you're on the server).
is that Dec or Hex 64id
Dec. It looks like "Steam_nnnnnnnnnnnnnnnnn" You just need the numeric part.
It worked thank you
Been trying to get a crossplay server working in a proxmox lxc for a while now. cannot for the life of me figure out what's up.
I tried Debian 12 first, then Ubuntu 22.04, but I still cannot get it to work. Every time it boots, it initially looks like it connects, but then no join code is posted, and i get the reccouring PlayFab reconnect server and Server 'ServerName' begin PlayFab create and join network for server
I have all the dependencies I could find, and I've looked everywhere, but I cannot find how to fix this issue online. The closest I've seen, is someone using a docker container who was able to fix it by slightly modifying their network configuration for it.
Anyone know anything?
Nvm it was pulseaudio, I was missing pulseaudio
Re-post:
It's quit early to worry about this, but when Ashland drops into Live in the future, what should we have in mind about the map-re-generation of our server-world? We see it takes place in PTB, when they load into their game, and it takes some time.
Any advice how to load into a server world (after it drops onto Live in the future)?
(Started my first server long after Hildir-Update)
is it possible to run a valheim server on the ash lands PT
Of course.
Hi, haven't played Valheim since the first two months of launch. Could someone let me know if the following issues have been resolved that we used to experience with dedicated servers:
- Desync of players, enemies and boars
- Couldn't build or terraform too much without noticeable decrease in FPS
- Performance issue causing generally low FPS. I think the most we could get was 40FPS with tweaking/modding to help with some optimizations.
Is it possible to run a dedicated server of ashlands thru SteamCMD (CLI, Windows) ?
With the current Ashlands PTB, one temporary fix I've learned to fix the portal bug is by restarting the server. In case this hasn't been shared yet.
Terraforming and performance fixes have definitely improved much of the general gameplay. Networking is still limited by your connection to other players, so there can still be desynchronization issues if any player is on a weak Internet connection.
We're all have great internet and our server is in the same city so it's good to hear there have been improvements. I think we might jump back in and try it out again.
There are still limits of course, once you start getting over 10,000 to 12,000 instances things can start to get slow no matter whose computer it is π
I don't even think we got that many instances the first play through before it started giving issues. And we rented quite a beefy server at the time
Yes, pinned messages in #valheim-public-test has the command to do it
help me! i'm Error when trying to start dedicated server
If I run the command βsetkey skillgainrate 200β is this increasing the rate for just me or everyone on the server?
ERROR: Shader
is it possible to add the test branch to my Nitrado server please
thank you!
All shader warnings/errors can be ignored dedicated server does not load graphics
How do I run a dedicated server on the PTR build?
I don't have access
To join the PTB channel and get all info you need on it, open the channels and roles section at the top of the channel list, and select "I want to be a public tester"
Thank you
Thankyou
it is, you need to find the server config files and enter "public-test" into the "betas" field
What is the best hosting site for a Valheim server in your opinion? I have used dathost and gportal before, but i want to know if there is other companies to consider π I like Dathost for the modding support, but gportal is better to finetune mods in my opinion. I found a site called Valhost. Is that good? I would be glad for other experiences π
Valheim doesn't recommend any particular hosting company. And the experiences that other folks have had in here probably won't be useful to you due to things like location, level of support needed, location of players, etc.
You would do best to find an online review of game hosting companies in your area and consider those choices.
The company i have used has servers in my neighbour country, so maybe dathost is the best then
But i see valhost has much more oneclick modding for servermods
What do the online reviews have to say?
many people on reddit like Valhost. But a few also mentions dathost also
That's nice but reddit is a forum not an online review as I was thinking of it. Google for 'game hosting companies' and see what comes up. There should be some review sites in there not coming from the hosting companies themselves.
Ok π
Hi all! New private server host here. I'm just wondering if there is anything out there to help make the rolling log file more useful? Color-coding the console output? Maybe a tool that reads the logs and sends messages to a Discord server? Just checking before I see what I can do. π
Nothing like that in the vanilla game.
My dedicated server cmd box runs, and then does a whole bunch of stuff, then closes. Can I see where there's an issue with my config somewhere?
I need advice for the best server hosting website for 2-3 people vanilla. Best bang for my buck to have no lag/stutter issues. Thanks in advance!
You can add an option to the server's startup file to create a log file that you can review. It'll get recreated each time the server starts up. Add -logfile "[PATH and NAME]" the quotes are needed there. Path and name should conform to Linux or Windows standards depending on which OS the server is using.
Quicker way to debug this, because it doesn't happen when I launch off of world name "Dedicated"
Do I have to generate the world before I launch the server?
Valheim doesn't recommend any particular hosting company. And the experiences that other folks have had in here probably won't be useful to you due to things like location, level of support needed, location of players, etc.
You would do best to find an online review site for game hosting companies in your area and consider those choices.
just trying not to get setup with any shady hosts.
In the startup file, the -world option must refer to an existing world. If not, the server will create a new one named 'Dedicated'. If you give it a name that doesn't exist for the -world option, the server crashes.
I see, I see. I'll look into it, then. Ty.
I did go in and generate the world, so the world is indeed there.
Are you or the server using any mods?
No mods.
Completely fresh install, never have used mods, to be clear.
The CMD interface opens, does a whole bunch of stuff ~ and then at the end it closes.
My client isn't even running a the time. (The actual game I'd be connecting through localhost:xxxx)
One sec....
Mhm!
Your password is too short. It needs to be at least 5 chacters.
Ah,ha. Silly mistake
Gotta love those logfiles. π
No kidding!
I run a dedi on 4netplayers for ashlands PTB. Anyone know if there's any way to enable world modifier for fire propergation?
They might know in the #valheim-public-test channel.
... how do I get access? π
Use the id:customize channel to enable the valheim-public-test channel.
Ta
Okay question for you gurus out there. Been hosting a dedicated server on my PC for awhile, but about to be down to move. Brother was planning to hose the server on his PC to keep it going for everyone. What files will I need to provide him so he can host the same dedicated server that I am currently hosting?
how do I safely add a few mods, and do I have to download the same mods to my local valheim as the ones I install on the server?
Did anyone figure out how to do No Map with Gportal? The toggle does nothing.
Go to your common folder. Find the Valheim dedicated server folder there. Give your brother a copy of that folder to put in his common folder.
All the best mod info is in the #mods-issues channel.
Check and make sure you've got the right spelling, etc. for the console command. If you screw up the command it will just ignore it. Doesn't give you any error or anything.
In G-Portal it's just a toggle, but doesn't seem to apply π¦
Then use the console commmand instead. You've got to be on the server's adminlist and you'll need the ServerDevcommands mod on your game. Or ask GPortal support, too.
whats the command to fix the terrain?
I set my self as an admin in server I set console on and logging in the server open console and typing devcommands and trying to toggle fly and it does nothing
Am I doing something wrong?
Is there a way to increse the number of players on a server without mods?
Trying to go from 10 to 12.
Nope, 10 is the limit.
Long ago there was an optterrain command. That's been obsoleted and the game now does that by itself. There is no current command to fix terrain in the vanilla game.
You need to use debugmode as well as devcommands.
Hey, is it allowed to ask for recommendations here? For paid server services
I suppose you could ask but IronGate Valheim has NO official recommendation at all. You'd get the best info from an online search in your area for "hosting company reviews" or maybe "best hosting company". Just don't go to the site owned by the actual companies, LOL
can i convert my server to a test server
Maybe, if you remove any mods you might have and realize that once you go PTB with a world, there's no going back. You would find the beta option in your Steam Client library by right clicking on the Valheim Server Tool there. I'm not recommending it, though. Pro Tip: make and archive a separate backup of your world and your character first.
could somebody tell me where i can change dedicated server settings to allow player based raids
Do you have access to console commands on the server?
probably not. i just installed a fresh ashlands. im assuming little to no mods will work with it.
If you can move the server world files to your solo game, you can set that configuration there and move the world files back to your server.
waiiiiiit. i was just reading a reddit post where world modifier devcommands work on servers ?!
Yes they do. The one you want to enter at the server console is setkey playerevents, IIRC. You can look them up on the Valheim WIKI.
Is there no more an option to load a wanted seed into Dedicated server?
I created a single save and changing the -world "Save name"
But when I load into the dedicated server it apply a diff seed and when I log into the single save it shows me the one I inserted
How do I setup the public-test branch in a dedicated server?
Pinned messages in #valheim-public-test has the steamcmd
To what directory did you copy your save to on the dedicated server?
Steam (by editing start_headless_server file)
Via the -savedir argument? And you've put the world database and metadata files in Steam/worlds_local?
Whose the best valheim server provider?
Need one thats going to run smooth as butter for about 20 people once ashlands drop
I named the world after my single player world (with the wanted seed) beside that I didn't move any files
I recommend reading the Valheim_Dedicated_Server_Manual.pdf that Steam downloads alongside the executable and libraries.
It looks like you're using Microsoft Windows, in which case, the default server data location is %USERPROFILE%/AppData/LocalLow/IronGate/Valheim and under there, you'd put the save in the worlds_local sub-directory.
are dedicated servers less laggy?
Than?
normal servers through normal valheim
I'm confused, it all uses the same netcode so it depends entirely on the people playing.
I dont know what the quality of servers are for valheim but its always possible to get a dedicated server with better performance
Its also possible for the dedicated server to be worse
If you see the channel topic, we try to avoid 3rd party host advice. Quality is subjective and will vary based on the locales/ISPs of the players, the hosting provider, and Azure PlayFab Party cloud relay regions (if using Valheim crossplay). Opening up the discussion to such advice can also lead to spam, shilling, and scams. Sorry :/
Hey folks, I ran out of ideas trying to get my dedicated server working for my friend to connect, so if anyone has any tip...
I'm hosting on debian VM. The server works fine when using playfab (-crossplay) options in the server settings.
Issue starts when removing -crossplay. I have my ports forwarded (2456-2458) and I can see traffic hitting the server on my LAN, both denies from random IPs and my friends IP which is allowed.
But.. the connection is only going to port 2457, which from my understanding is for steam, even though my server is hosted on default :2456. In fact, I do not see any traffic trying to hit :2456 which is weird
Am i missing something?
You have the ports forwarded for UDP traffic and your friends are connecting to your Internet/external IPv4 address?
yeah my friend is accessing my public ip:2456 which goes to my edge router, that forwads 2456 to 2458 to my firewall before the server and the firewall sends to forwards again to my server
the one on the right is my friends IP allowed traffic to the valheim server on my LAN
i just dont understand why would only 2457 be getting traffic, when the server is hosted on 2456 .. and whole range is forwarded
i forward both tcp/udp
And your Firewall allow rules are for both TCP and UDP?
And your LAN IP hasn't changed since you set up the forwarding and firewall rules?
nope, i can connect to the server on LAN and my public IP is the same
So .22 is your current LAN IP, your current router forwarding rule LAN IP, and the firewall allow rule IP? Any local firewall software or VPN client running on the server?
duuuuude you are right ...i just realized, debial still uses iptables as default FW..this might be it, brb
Sorry to interrupt, I'm having issues with my Dedicated Server. The world doesn't seem to be saving properly after shutting down the server. After booting it up this morning I found the character in the same place i left him, but the world reverted back a couple of hours so I'm missing buildings and portals. This has happened to multiple worlds.
How are you shutting down the server? Unfortunately, the dedicated server is picky on what kind of shutdown triggers a save. The correct way to shut it down with a save is an interrupt signal (or Ctrl+C in an interactive shell with foregrounded dedicated server process).
Last night I pushed Ctrl +C, then it asked if I wanted to terminate batch job and i hit Y
In principle, no, there's no difference whatsoever. In theory, you could run the server on another computer and offload a bit of the load from a client. But most of network traffic is still going from client to client (in case of Valheim), so the difference is negligible.
Bottom line: don't run a dedicated server just in the hopes it will reduce lag. A better solution is to have the client hosting the world have a good PC and a good Internet connection (also, all clients better have a good, low latency packet-loss free connection).
The main benefit of running a dedicated server is the fact that there's no-one who needs to be online all the time or keep running Valheim. Anyone can connect whenever they want to.
(Also, a dedicated server can usually be run headless. There are other games which somehow manage to do a (Windows-only) client dedicated server which can not be run without a GUI; ahem ||Wreckfest|| ahem)
Dang..seems like past me didnt forget it and the rules are in place in the debian FW
yeah .22 is my LAN server, my firewall has rule to port forward 2456-2458 range to that .22 server and allow through only my friend's ip, which starts 172. in the screen. Dont have anything else running on that server
Alright. So far looks like you're doing everything right. Make sure you don't also have additional rules managed by non-iptables frontends like ufw or nft. nftables became the default on Debian somewhat recently.
You should also confirm the process is listening on the right ports with sudo ss -l -n -p | grep -i valheim
Yeah the sockets are open, I'll check if any other software FW could drop it. Btw, does Valheim work by first requesting over :2457 (via steam?) and then connecting on 2456? I'm still confused why would I see my friend's IP connecting to :2457 instead of 2456, even though he is trying to join with specific ip:port
Checked iptables which has the chains and nftables service is not running, so there shouldnt be issue on server side I think
If you've disabled crossplay and are using the public lobby beacon (-public), then 2457 serves the Steam A2S protocol. It's a simple service that reveals statistics about the game server (e.g. player count and version information). So it will be read by the lobby facilitation software and possibly other clients.
Alright, that makes sense
That's unfortunate. I would figure that's an acceptable way to terminate in Windows given it ships with a .bat script, but I only know the Linux version in that depth. Next time you shut down, may be worth checking the server logs. Also make sure you have enough disk space available in the volume hosting the server data directory.
Also worth checking to make sure you don't have a competing worlds directory alongside your server's worlds_local.
Worst case, you can try adding your player ID to the adminlist.txt and from a game client started with -console, Hit F5 and enter the save command before another shut down.
If you're still having issues, @sudden lichen, you might try troubleshooting from the other side.
https://geekstrom.de/valheim/check/ to see if the Internet at-large can access it. If so, then next thing to troubleshoot is your friend's side. They may have a VPN or security suite installed that is blocking the request or it's possible their ISP prohibits connectivity to other residential ranges.
Aight, I got working. So it was not enough to just allow my friends IP through to the ports. Just tested to allow all traffic to hit those ports and it flags as online after that change on the valheim check link.
yep, can see it now. Thanks Justin for the assist π
Sounds like Steam needed access, too. Your friends were accessing the server with your WAN ip address?
yeah with my WAN:2456. I will have to update the server to connect to it, so I guess the :2456 traffic will come when from a connect client and I think there might be some other steam service besides just stats that allows it to be connected to. DMR maybe or something tied to steam server list?
That's what I was wondering. π
Maybe some info could be gathered from a wireshark pcap
Glad you got it working. I suspect 2457 should be connectible to all on a -public server for the sake of the lobby facilitation, but not sure about 2456. If you find out more, let us know.
This may have already been puzzled out on Reddit or the Steam forum. π
I would expect so, yeah
hello i tried to access beta throught my linux server
with batch and pw
but it gives me wrong version error while trying to log in
You've switched your client to the public beta as well, @pure prawn?
yep my client on beta
maybe im missing smt in configs, im pretty fresh with linux ssh
If you're using SteamCMD, paste us the command line you used for the upgrade or install. Also note that there was an updated public-beta pushed out 9 hours ago. You will have needed to update both the client and server since then.
What is providing this vhserver set of programs? Doesn't look like the official distribution.
i think it uses up to date files from steam db
guess im on the right way
Cool, yep, and I would recommend using this system's instance.cfg instead of common for the branch and betapassword given you don't want to put all of your games on that branch:
https://docs.linuxgsm.com/configuration/linuxgsm-config#instance.cfg
Build 14158634 was what went out 9 hours ago and corresponds to the version of the public-beta game/client that Steam auto-updates to.
i couldnt understand why should i use instance.cfg
and i really dont even know where it located
Looking at the doc, it would be at ~/lgsm/config-lgsm/vhserver.cfg. The reason is that if you have other game servers managed with this suite, common.cfg will put those other games on their own public-test branches (if they exist for those games)
oh no no server is only for valheim no other games installed
its will be a no problem
im having issues hosting a dedicated server, im using the valheim dedicated server app to host for ptr....have my ports open etc 2456-2458. udp/tcp
was getting non compatible versions earlier
maybe i got name and world mixed up in server bat...
Do i need to move my ptr world into the main games world folder?
nvm its there already.
I was about to ask where else it would be.
yeah...just having trouble hosting. started the server.bet and it keeps failing to load all things and then closes itself
I am a bit confused on a dedicated server, is it I can 1. set up a server directly from my pc or 2. I use a hosting service?
Yes. Just depends on who is paying.
I donβt have the best pc but Iβd like to pay for a dedicated server, so if it uses my pc thatβs not going to work but if it routes it through a server host then it wouldnβt use my pc right? Thatβs what I was asking
Looking for a modded V-heim server. preferably an adult server. non rp. @rotund pendant me if you have one.
Morning, i have a Problem with my world Files. I womt to start a dedicated Server and want to juse an existing world, so now fore uploding my world i need the fwl and db Files, but im my local worlds Ordner are only 3 TexCache per world. Any Tips?
I think the TexCache file set is what the PTB uses instead of the .db and .fwl file pair the early access game uses. Oh, and I'd keep the set of three together.
PTB?
Aren't they just map cache files? The PTB uses the same files as the live version does.
I'd say look in the cloud.
Ok, where do i finde the Cloud Files?
Yea the TexCache are Just map File in my Opinion to
Hey all. I have attempted to run a dedicated server using the Steam Valheim Dedicated Server (without CMD) and using a modified start_headless_server.bat file. This is something I successfully ran about a year ago. I thought editing the file section with a new value for -name and matching the value of -world to a world already created on the PTR branch of Valheim would be enough to start it as a dedicated server. I can find the server in Valheim by using "Add Server" in the game and using the Join Code. It seems to connect. It prompts for a password, loads for a bit, and then fails with the message "server is using an older version" (something along those lines). I can see in the cmd window that indeed the server is still running 0.217.46. Is there something I should add to the start_headless_server.bat file or the properties of the Valheim Dedicated Server in Steam?
So, you're already using the public test beta version of the game. And want to keep using it, I guess. Your server will need to use the beta version of the game to be compatible with your game. You would do that by going to your Steam Client library, right click on the Valheim Server Tool icon and select Properties and then Betas.
how to set modifier "portal items" in server command
there is only 3 option " casual, hard, very hard"
Hey! Possible to get some help with a PTB server? Using Filezilla x G-Portal, any takers?
State your problem and what you've done to fix the issue so far and someone may respond
I've uploaded the files, but it seems to load the wrong world file for some reason.
What kind of environment are you working in and where do you expect the world files to go?
Windows, using Filezilla for the files and the server is set up through G-Portal.com
Did that, but the game seems to have lost about 40 in game days. Any thoughts?
Nevermind, figured it out. Gave brother the .db and .fwl file from the user/AppData/LocalLow/AIronGate/Valheim/worlds_local folder and it works now.
I have no experience with G portal but you should be able to explore the folder structure on the g-portal end in filelzilla and look for a worlds_local folder. I'm assuming g-portal us using linux so probably somewhere like /home/steam/.config/unity3d/IronGate/Valheim
Okay, thnx for the tip! I will try again π
hey yall, havent used dedi servers much but set one up for the new patch. can xbox/steam users play on the same dedi on the playtest? the xbox players have an 'incompatable version' error when they try to join. is the xbox/steam version on a diff patch?
the gportal site has crossplay enabled also
Last patch was 15 days ago and Xbox and steam can both play on a crossplay server of it
I hope this is the right place. Just looking for why this might be.
I am on a server between me and some friends. When on my xbox, it works just fine. When I am on my computer, using Xbox PC game pass, "failed to connect" any idea why that might be.
Does the PC have a VPN? Is the PC's firewall blocking the traffic?
I can get on my other worlds, and even run them as servers.
No VPN. No clue about firewall
the last patch was yesterday for steam public test version, thats why i didnt know if xbox was on the same version
That it was, you didn't say anything about using the beta, and this channel is for help with released version of the game so I assumed that. All PTB talk should be done in #valheim-public-test . Xbox would only be on the beta if it was set up to use it through insiders
my mistake, did not see that channel. the xbox players are also on the beta version through xbox insider, i am just assuming its not on the same patch version as steam yet. thanks though
Not sure if they sent it to both, but we also know Microsoft can be a little slow getting things out
yea i have noticed xbox updates are usually a little behind for most games
Has anyone had issues with Gportal servers showing 0 ping and 0 transit? they say it can be the game file being corrupted because they moved the server a few times but no luck, idk if thats possible or not, and I don't know how to download the save file to test it somewhere else
The Xbox PTB updated about two hours later.
Thanks, I had forgotten to set the server to also use the beta. That was it.
I'm having issues with supply chain buldings turning on/off at regular intervals with no ... visible explanation
server resources seem more than fine and enough
Is it possible to make it daytime for the entire server using the tod or another command? Or is that client-side?
ok never mind, figured out. user error
To anyone that hosts a dedicated server, do you use the Server Simulation mod? Does it break your server? I ran into an issue today where we killed a troll and it kept looping the death animation, spawning bodies and causing the fps to drop to 1 until it crashed our clients. Had to roll the server back and I've been trying to figure out what caused that. I've narrowed it down to either the Server Simulation mod or Better Networking. I was hoping someone had some experience with this or knowledge to share.
What would be the safest way to host a server? i don't feel excited about port forwarding
just a private server for me and my friends
#mods-discussion . I've never heard of that issue on vanilla.
No need to port forward if you turn on crossplay
please elaborate
There's nothing to elaborate, running the server with -crossplay don't require port forwarding
Please tell me!
I want to install "dev commands" on a dedicated server.
This mod requires Belpen ex.
Tell me, should players also have a Belpen or can they log in without it?
From "pure" Valheim?
Hi, anyone who runs a linux dedicated server could help me ?
How do i update/change my server to beta version?
If you're talking about JereKuusela's Server Devcommands mod, then that is a game/client-only mod and only the client wishing to use the commands needs to have BepInEx and the mod installed. Other players could continue to use vanilla Valheim. #mods-discussion would be the place to inquire further if needed.
Are you using Steam or SteamCMD to install/update the game?
SteacmCMD
In your next app_update or clean install, supply -beta public-test -betapassword yesimadebackups to switch to the public test branch if you wish to. The #valheim-public-test channel and its pins can be helpful further. Consider switching back to the main public branch with -beta public when you are no longer participating in testing to avoid future surprises.
Thanks a lot! I will be trying that next.
any idea how to add sleep plugin for dedicated server?
You will have to be more specific, are you talking about character sleeping in-game, or a server process sleep/hibernation when the server is idle?
Ah. That would be a better question for #mods-discussion. There was a mod called SkipSleep that might fit the bill. I don't know if it's up to date though. https://github.com/RinseV/valheim-skipsleep
Hi there, if me and my friends started up a new dedicated server (that I am hosting on my personal machine) and we played like normal, will the game world automatically update and add the new Ashlands content when the update releases? I know we cant explore in that area, but as long as we stay far enough away, the new content will populate in when the update releases, correct?
Yep, you've got it. As for the "automatically update" question, that depends on how you've deployed the server. You may have to manually shut down the server and trigger an update. You may also wish to back up your server world prior to the Ashlands update.
Okay so its the magical day when the update releases, i shut down the server (CTRL+C in the interactive shell window), then go to steam and update the dedicated server and game client. When i reboot the server, the content will be updated?
BTW, thanks for your help, I'm new around here but i see your name a lot in this channel!
Yep! And you're most welcome π
any idea why my dedicated server 4 proccesors 16 gb of ram is lagging when 4 people are near?
anyone have experience using the mrbound18 docker image to run the test server?
Yes, I do, using it right now
not to run the test server though, just vanilla
any idea why my dedicated server 4 proccesors 16 gb of ram is lagging when 4 people are near?
One of the players on the server may have a poor internet connection.
It actually does because a single player with a bad connection will seem to lag because they will jump around as the server struggles to update everyone else with information regarding that player. If EVERYONE is noticing issues with more than just a single player then maybe there is more going on but I wouldnt rule that out without more information
Also, 4 processors is kind of weak, too. What else is the server box trying to do at the same time. Anti-virus? Are you thinking that the term "dedicated server" means that it's remotely hosted by a gaming hosting co.? Because, that's not what it means.
Im having a hell of a time with this image trying to get the test server up. Might try out another image. though. Ill report my findings here.
Something odd is going on though. Even when i take my server offline it still shows online in "Favorite" tab of the select server modal.
google cloud linux
Please report back what you end up doing. I've been trying to use this repo since it seems to be most kept up with but I still have problems and a few pending issues. I got it working for vanilla just recently and its been stable but I'm curious if the auto-update feature is going to be successful when ashlands drops given the recent issues I've seen with auto-restart. Thankfully the maintainer is receptive and resolving them within about a week or 2 so fingers crossed. You should post your compose file in the discussion area on that repo, I could look at it there and someone else might be able to chime in too
https://github.com/lloesche/valheim-server-docker/tree/main is on my list to try next if issues with the current one are unresolvable
Yes, likely one or more of the players' game client or their connection to this server, @timid rose. Alternatively, if you're using crossplay, it can be the relays slowing you down. In this case, you can try switching to direct connectivity to the server.
version: "3"
services:
valheim:
image: mbround18/valheim:latest
stop_signal: SIGINT
ports:
- "${PORT}:${PORT}/udp"
- "2457:2457/udp"
- "2458:2458/udp"
environment:
PORT: ${PORT}
NAME: "${NAME}"
WORLD: "${WORLD}"
PASSWORD: "${PASSWORD}"
TZ: "${TZ}"
ENABLE_CROSSPLAY: 1
PUBLIC: 0
AUTO_UPDATE: 1
AUTO_UPDATE_SCHEDULE: "0 5 * * *"
AUTO_BACKUP: 1
AUTO_BACKUP_SCHEDULE: "0 3 * * *"
AUTO_BACKUP_REMOVE_OLD: 1
AUTO_BACKUP_DAYS_TO_LIVE: 5
AUTO_BACKUP_ON_UPDATE: 1
AUTO_BACKUP_ON_SHUTDOWN: 1
AUTO_UPDATE_PAUSE_WITH_PLAYERS: 1
WEBHOOK_URL: "${WEBHOOK_URL}"
WEBHOOK_INCLUDE_PUBLIC_IP: 0
UPDATE_ON_STARTUP: 0
USE_PUBLIC_BETA: 1 # Also didnt work because idk... code looks good but idk
STEAMCMD_ARGS: ${STEAMCMD_ARGS} # Used to play beta versions as well <- didnt work because i believe the variables are mismatched.
volumes:
- /docker/valheim/saves:/home/steam/.config/unity3d/IronGate/Valheim
- /docker/valheim/server:/home/steam/valheim
- /docker/valheim/backups:/home/steam/backups
im nit
any way i can fix this bs?
So you're not using crossplay? You're using wired networking, and you don't have a VPN or Internet security/anonymity proxies running on the server?
And if this is cloud-hosted, I would recommend against instance types with CPU bursting (e.g. shared-core)
Do you need crossplay? You've declaring the ports but I don;t think that is needed with crossplay : 1
Ive tried it both ways, no change π¦
Also, please start a discussion here https://github.com/mbround18/valheim-docker/discussions
Other people might be able to help
If you don't need crossplay AND you are forwarding the ports on your router then turn crossplay off and try to connect directly through the steam server list
A couple of notes. If this is not a fresh install to your bind-mounted server dir, you will need to trigger an update in addition to setting USE_PUBLIC_BETA. It looks like you'd set UPDATE_ON_STARTUP to 1 to do that. Also, it doesn't look like STEAMCMD_ARGS is a valid variable in the current version of that image, so consider dropping that one. There is an ADDITIONAL_STEAMCMD_ARGS if you have something other than the branch to supply.
Well, that works too π
im not
Is it possible to set player-based raids in the startup script for running a server locally? The manual notes that you can set raid intensity with -modifier raids <value>, but I don't see a correlate for player-based raids. Unfortunately when I try to google this info, I just get either ads for server hosting or links to the valheim wiki, which doesn't contain an answer either. I also checked pinned dedicated server help info link (which is great btw, props to whoever wrote that), but that doesn't appear to get into config arguments.
Aha - finally found it by searching through this server: the oddly named playerevents tag appears to be it.
Is this on Google Compute? If so, which instance type?
That looks good enough, IMO, @timid rose, unless you are saturating this with players. If the server itself (or crossplay relay) is at fault, you would likely see the server connectivity issues icon in the top left corner of the game during the bad times. If it is a player causing this, I would suggest advising your players to avoid Wi-fi, disable any VPN, 3rd-party Internet security, or anonymization software they might be running. Sorry I don't have more :/
You might also need to take into account your players' locations when choosing the GCP region and pick something more central to all of them (including yourself)
Would turning crossplay off increase performance if everyone on my server is playing on PC? Its a dedicated server running off my machine that everyone will connect to using either my IP or the join code that the game generates. If so, how do i disble crossplay? Just delete the "-crossplay" from the batch file?
Most of the time, yes, @tranquil kayak. But note that once you disable it, everyone will be connecting to the server directly. Join codes can no longer be used, and the game's ports must be reachable from the Internet. A typical home setup would have you:
- Use a DHCP reservation for your LAN IP to avoid it changing
- Create forwarding rules in your router exposing the ports to the Internet with your reserved LAN IP as the local destination.
- If your Internet/external IP changes, setting up Dynamic DNS so you can give the other players a predictable host to connect to
Okay copy that. If they "favorite" the server in the game after connecting to it once, can they still join through the game interface even if my IP changes?
If that favorite was created by IP address, then no. Their games/clients won't have a way to discover your new IP. If you used Dynamic DNS and your players favorited that hostname, it would work fine across IP address changes once your Dynamic DNS provider's entry updates.
That is one of the few benefits of crossplay. Your server is given a unique Microsoft Azure PlayFab Party identifier that is remembered on subsequent connections from other players and used to discover the relay your server is using.
hmmmmm okay thanks. Is the performance increase fairly substantial? Enough to necessitate this extra work? Luckily i just got my comptia a+ cert so i mostly understand what needs to be done, just a matter of getting it all set up
In my experience, yes, the performance increase is substantial. This will likely vary based on location and proximity to whatever Playfab Party regions Iron Gate or the publisher has enabled. Also worth noting is that once you drop crossplay, your own game client can connect via your server's LAN IP instead for a connection that is about as direct as you can get if you're on the same network.
Thanks again for all your help, a couple more questions...
Would it be beneficial to set a static IP instead?
I have the port forwarding already set up in my router's management software for ports 2456-2458, are there any others that need to be opened?
Is Dynamic DNS something i can do on Windows, im not seeing it anywhere in my router software?
Gonna add a note, I might have found dynamiuc DNS, I think my router just calls it Custom DNS
You can use a local static IP as an alternative to a DHCP reservation if you'd like, it is just more parts to set up, in my experience. If you're talking about an external static IP, you'd have to see if your Internet service provider offers it first. If they do, then yes, it's a viable alternative to Dynamic DNS.
And yes, some Dynamic DNS vendors have desktop clients that can be used to update your current external IP address with the vendor.
Many newer routers have the feature built-in, sometimes labeled as DDNS or DynDNS.
Okay, this should be the last thing...
Once i set up Dynamic DNS, that is what i would give my friends to connect to? Whent hey go in game, and go to join a server, and click on "Join by IP" they would put in the dynamic DNS followed by the port number (dynamicdnshere:port)? I think the proper port is 2457, correct?
2456 usually. And if you're using the default, they likely don't even need the :port part. Make sure your port forwarding rules include UDP traffic.
Okay, i have the port set to do both TCP and UDP. So i would set up the dynamic DNS (unfortunately its a paid service with my router provider... RIP β οΈ ), and then just give them that DNS name and we should be good to go.
hi all i have a server with about 2 to 300 hour and a load of building but the map is fully show and wont load any new areas is there away to reset the map exploration to load these areas but keep the buildings
If you've bought any domains, your registrar might offer a free Dynamic DNS service for sub-domains of your purchased set. Google Domains and Namecheap do this. GoDaddy does not, but there are scripts out there that will do it with their API.
OKay awesome. Thanks so much for your help. You are a gentleman and a scholar, and your services are mighty appreciated! I wish there was a way to rate your assistance because you would definitely get multiple gold stars!
The areas on the map that are shown but haven't been rendered by any player's game should be fine without resetting.
hey jaga thanks for the reply the only thin is the map is fully reveiled so ya can see it all will it still reneder ok when a player actually goes to the loaction
It depends on how the map got shown. If it got 'explored' with a console command, for example, that doesn't count for being 'rendered'. You have to actually go there for your game to render the area. Areas will render normally when a player goes there whether they've been shown as explored on the map or not. π
Hello, I'm in a bit of a jam. The machine that I'm running our dedicated server on is having disk issues. Nothing can read or write to the disk, to the point that some linux commands are failing. Looking at the valheim server logs, it seems as though for the past few weeks the server has been unable to save the worlds to disk or write any backups. Somehow, for whatever reason, the valheim-server process is running just fine and we're still able to play. We do have a network storage drive mounted to the docker container running the server, so if we can write there it would be fine. Is there any way for us to save this world? Either by forcing the valheim process to write to our NAS or by having a client download the world that's saved in RAM?
me and my mate are looking to host a server so we can both play whenever the host (me) isn't available , does anyone have any reccomendations for the best hosting provider? Shockbyte looks the best from my brief look but not sure
and if we start a server if it possible to use it on our world we have already started instead of starting fresh?
I think that in order to change the save address of the server, you'd have to restart the server, which means that you'd lose the currently running world which the server can't save. Can you fix the disk issues by off loading some other stuff to free up some space there. And then have the server store the world that's in memory at the moment?
You can move your current world to a dedicated server. But Irongate can't recommend a server hosting provider, for many reasons. You need to find some online review sites for hosting providers in your, and your players, area. Consider pricing, location, and the kind of support you need.
The disk issue seems unrleated to the size of stuff on disk. This is an Intel NUC with a 256GB SSD and we recently re-installed a fresh copy of Ubuntu Server expressly for Valhiem and nothing else. Most commands that require writing to the disk seem to fail with IO errors, and all of the debugging I've done to fix the issue with the disk seems to point to bad sectors.
Sorry I can't be of more help. Maybe someone else like @final current in here can. All I can think of is maybe try to set up a Linux link pointing the current disk to maybe a USB flash drive you could plug into the system. Good luck with it, in any event.
Thanks!
Hey I am trying to set up a server anytime I change anything default start_headless_server.bat it will not open
there is a way to save the contents stored in RAM to network storage. This process is often referred to as memory dumping or core dumping. According to copilot how you might do this:
Capture the RAM contents: You can use tools like dd on Unix-based systems
Can you show an example of what you are trying to change, exactly? When you say it won't open, you mean the server doesn't startup but crashes instead?
I was able to get it to work it seems like if I use numbers for the password it will not launch
Ok. Good. Password has to be at least 5 chars long, too.
that explaines it thank you
Hi all- I'm having this problem:
04/26/2024 17:33:05: PlayFab reconnect server 'SoLaBrie9000'
04/26/2024 17:33:05: Server 'SoLaBrie9000' begin PlayFab create and join network for server
04/26/2024 17:33:35: PlayFab reconnect server 'SoLaBrie9000'
04/26/2024 17:33:35: Server 'SoLaBrie9000' begin PlayFab create and join network for server
04/26/2024 17:34:05: PlayFab reconnect server 'SoLaBrie9000'
04/26/2024 17:34:05: Server 'SoLaBrie9000' begin PlayFab create and join network for server
04/26/2024 17:34:35: PlayFab reconnect server 'SoLaBrie9000'
04/26/2024 17:34:35: Server 'SoLaBrie9000' begin PlayFab create and join network for server
Read online various issues- nothing seems to help- I'm on Ubuntu 22-
Here's my cmdline: steam 11564 11563 13 15:58 ? 00:13:12 ./valheim_server.x86_64 -name SoLaBrie9000 -port 2456 -nographics -batchmode -world Elysium -password Scott7 -public 1 -savedir /home/steam/.config/unity3d/IronGate/Valheim/Elysium -logfile /home/steam/.config/unity3d/IronGate/Valheim/Elysium/valheim_server.log -crossplay 0
Not sure why it's even reaching out to PlayFab...?
Any ideas before I start sniffing connections etc?
-crossplay 0 is not how you disable crossplay
Ok- the docs I have say 1 is enable, 0 is disable-
They're not talking about the -crossplay option.
-crossplay for crossplay delete it for no crossplay
That's intuitive... so just remove the option entirely? ok
So that makes the error message go away, but it still wont start and is stuck on some outgoing connection:
Not listening on the port:
root@valheim:~# netstat -an|grep -i tcp |grep LIST
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:37997 0.0.0.0:* LISTEN
tcp6 0 0 ::1:25 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
root@valheim:~#
Valheim only uses UDP.
Valheim uses UDP. And do you need quotes around the -savedir option's path?
I see
Quotes are in the startup script- this server has been working fine for months
Its got a bunch of outbound connections to steam
hmm its on 2457:
udp 0 0 0.0.0.0:51548 0.0.0.0:*
udp 0 0 127.0.0.53:53 0.0.0.0:*
udp 0 0 10.74.30.117:68 0.0.0.0:*
udp 0 0 0.0.0.0:2457 0.0.0.0:*
udp6 0 0 :::2456 :::*
That looks pretty good
So it's up?
It appears to be running but I still can't connect externally- i'll check port forwarding since I may have just set it up for 2456- thanks!
udp6?
udp6 is ipv6
Valheim is udp4
Depending on your kernel procfs and netstat version, you sometimes see a wild card entry covering both but only showing one.
If It was available externally before with -crossplay It could be the ports aren't forwarded at the router. Crossplay would have bypassed that.
bizarre- i had only tcp enabled to be forwarded-
Yep
they didnt have it working on crossplay, from there log im guessing they didnt install them dependences
They had been using crossplay working prior to that error occurring I was assuming
i never assuming that when seeing that error, only way that will happen if it was working is if playfab is down or they started blocking out bound traffic for some reason
If crossplay suddenly stopped working for you, my first guess would be that libpulse0 may have gotten uninstalled or there was a momentary lapse in Microsoft Azure PlayFab Party relay availability.
Looks pretty solid: https://status.playfab.com/
Welcome to PlayFab's home for real-time and historical data on system performance.
libpulsedev wasnt installed, but that didn't change anything- i'm restarting my remote network to enable the new forwards
libpulse0 is only used by the server if -crossplay is enabled
AND ITS UP - brilliant- thanks !
@proven niche 's suggestion as good as any I'd have. I don't have any good ideas⦠only risky ones. My first attempt would be something similar: copying what's there to a USB or network share if you can then making a bind mount of the good/working directory at the file system path of the bad directory and hoping the next save goes through.
Should you go down that route, @boreal crypt, it would be something like:
cp -a ~/.config/unity3d/IronGate/Valheim /mnt/GoodVolume/SavedValheim
sudo mount -o bind /mnt/GoodVolume/SavedValheim ~/.config/unity3d/IronGate/Valheim
You'd then see if the timestamp on the world DB/metadata files in SavedValheim updates on the next flush. But always a chance the server has a reference to the old file regardless, in which case this does nothing useful
can somebody help me with a crashing dedicated server? i dont know where the logs are or how to read them.
it was working then somebody with admin powers updated it and broke it. now i cant get any version to run
Are you the server owner? Where is the server located? At your home?
yesyes
How do you start it up?
Go to your Steam Client library, on the server PC and, right click on the Server Tool icon and select properties there. Then, installed files then reverify the files.
did that
What happens when you try to start it? Is there an error msg?
this is the last readout before it crashes.
There's no clue to the cause of the crash there. And I don't know anything about Windows GSM. Sorry.
idk where this log is
I THINK i got it. you helped. the first time i verified, nothing was wrong. i randomly tried again and it had to redownload one file. its generating locations now which is a good sign
Hi I have the exact same problem: I want to deactivate crossplay because one of our group have massive problems with it. Since we are all steam players crossplay is not necessary. But if I deactiavte it we just could not connect, no matter what I've tried.
I'm renting a dedicated Ubuntu server with all ports open and no firewall active. The strange thing is that the server is listening on IPv6 not IPv4:
Any suggestions how to solve that?
Exact same problem than who?
AFAIK you can not bind the server process to any specific interface IP addresses (which would be handy on a computer with many interfaces IP addresses, though you can work around this problem by containerizing). The fact that it (seems like?) it is listening to IPv6 only, might be because you don't have an IPv4 address.
So, I'd check that you get an IPv4 address on the server with ip addr show. Obviously you might not want to paste the ip address here, but just make sure you got a public IP address. Try to ping it from another computer.
On my (own) server (both IPv4 and IPv6 addresses): ```ss -unlp
UNCONN 0 0 *:2456 : users:(("valheim_server.",pid=8879,fd=15))
Hi all, kind of noob question here, I was playing on a server that had a loot multiplier (times2) , I have my own server now, how can i do a loot multiplier? Also, the one I played on was serversided only, no need for clientside, thats what I am looking for
A subject for #mods-discussion
Ok thank you
Also, I'd really like to elaborate on this:
I'm renting a dedicated Ubuntu server with all ports open and no firewall active.
I very, very much doubt this is the case. It would imply you have a public IPv4 address, which is very, very unlikely on a rented server. But theip addr showshould get you on the right track (of port forwarding needs).
It is possible the rented server does not have any port forwarding active, but assumed you want crossplay, as that is the laze catch-all users needs solution....
they prob had the -modifier resources set i dont know the value the settings give options are muchless, less, more, muchmore, most
Thanks, yes I also figured that out now - in the headless_server.bat file , but the server I am renting doesnt have that file, so I am still stuck lol
what os the server running on
and if using a hosting site they might have a spot in there gui to put that, they normally dont let you edit the start file directly
can I add plugin that makes sleeping easier? like 4 people dont need to sleep to pass the night only 1
Hey guys, I'm coming back to the game after a couple years away. Updated, joined the beta test channel, started a new seed, played for a couple days, and then decided to make that seed a dedicated server for my brother and me. I updated the Valheim Dedicated Server in Steam, joined the beta channel as I had for the client.
I updated the name of the world in my start_headless_server batch file. But it loads a new seed everytime instead of my existing world (with exploration and buildings).
I even went as far as to copy the world db and fwl files from the world that I want, into a new folder and point there with -savedir. In the console I see it grabbing from there, but it still loads a new seed. Any ideas? Thanks in advance guys, I've tried searching Google a bunch, and in here too, but can't seem to find a solution.
as far as I know you cannot change the name of a world. There are tools that claim to be able to do that but there is more that needs to be changed than the file name itself to work correctly witha new name
I just changed the name in the headless file to match the world that I want it to load as the server. That should be okay, right?
Hi Everyone!
when renting a server how important is the RAM? me and my friend are about to start renting a server from shockbyte and not sure whether to buy the normal 4GB or get some extra
You could start off with 4GB, if it's just you and one friend. But, depending on how they configure they're servers, you may have up upgrade to 8GB fairly soon.
Hi there, Blyzz. How are you doing today?
not so bad thanks, how you doing @proven niche?
nice!
I was wondering if there's someone in here that would be able to give me a hand... having difficulties getting mods installed on my dedicated linux server.
running on bare-metal debian 12 bookworm
Is the server at your house on a 2nd PC or at a commercial hosting site?
Yeah, server in my living room π
Cool. Did you install it with SteamCMD or by just downloading the Valheim Server Tool from Steam?
steamcmd
Oh... I'm not familiar with SteamCMD but others in here are. What, exactly, is the problem? Are you getting error msgs?
I've been trying to follow the instructions online - but they show me "this is what your directory is meant to look like after you unzip BepinEx, amine looks nothing like that... so I try anyway, but have no idea whether it's done properly or not.
Basically, you go to the BepInEx .zip file and select the BepInEx pack. Then extract that to your 'Valheim dedicated server' folder. But that's from memory and without using SteamCMD, although I suspect it would be similar either way.
So, I extracted the BepinEx pack into my ~/valheim/ directory, and then copied the "BepInEx" directory in there from the "BepInEx-5.2.22/" directory as well, JUST to be sure
still not 100% sure that's the correct dir tho
server command that's running the game right now is:
/home/vh1/valheim/valheim_server.x86_64
so that MUST be the right directory yeah?
The directory that has the server executable file in it should get the BepInEx folder itself and some other single files from the BepInEx .zip. So that should be right.
does this look right to you:
Yes, except you don't need the BepInEx-5.4.22 folder there.
that 5.4.22 is what is extracted from the zip
try -setkey fire
Also, check the dedicated server manual and read the section about Linux libraries. You may be missing a couple libraries needed for the server to run.
oh, the server is running - i'm in game right now π
Awesome! π
π
You have files in there that I don't recognize but, as I said, I'm not familiar with SteamCMD and, "If it ain't broke, don't fix it". So better to just leave them in there either way. π
lol
ok, so what I'll do is just copy all contents of BepInEx-5.4.22 into the ~/valheim/ directory
is there a way to know whether it's installed correctly? or do you know only after applying a mod?
(and it then works)
What you're seeing re udp6 is likely a reporting bug and probably not your issue. Between various kernel versions and socket display tools (e.g. netstat), there's not a consistent representation of dual-stack wildcard binds, for example in linux, if Valheim bound the IPv6 wildcard with the IPV6_V6ONLY=0 socket option or bound without that sockopt, but /proc/sys/net/ipv6/bindv6only=0. I would try with ss instead of netstat, first.
I'm thinking that the BepInEx-5.4.22 folder is a copy of the folder you put in the Valheim directory but I could be wrong about that. Check the server's log and see if it shows BepInEx starting up, etc. with no errors. Then just add the mod(s) one or two at a time and check to see that the server still looks good when you load in the game.
Ooooooh! it'll be in the startup? Sick! checking now
That's more of a question for #mods-discussion or #mods-issues . This channel should stick to the base game to keep the info relevant
Yeah, I keep forgetting about that, too. Sorry.
It's fine π just trying to keep things organized a bit
OH!
I have a quesiton for here too! - Is there an elegant way to shut down the server? rather than sending SIGHUP?
@solar shore, you're just missing a few steps. BepInEx is kind of a wrapper around the executable when in use. Activate the Linux tabs of https://docs.bepinex.dev/master/articles/user_guide/installation/unity_mono.html?tabs=tabid-linux
And you may need to add export SteamAppId=892970 to the wrapping shell script.
And send SIGINT not SIGHUP if you can. That will ensure the final flush of world DB to disk is performed.
Thanks @final current
so then SIGINT is the most elegant way to shut the server down?
(Sorry- got my kill 2 confused with kill 1)
It aligns with Iron Gate's recommendations, which document using Ctrl+C on interactive shells.
ok, thanks, just seems so... not sure Im used to running a Zomboid server that can accept a "quit" command. I mean, Not a problem - I'm running the server in a screen session, so I can just create a script to send the kill 2 to the screen session.
I don't know if screen propagates the same signal downstream, but if it does, that should work. Otherwise, you would want to target the Dedicated Server process itself.
also, pretty straight forward, will do, thanks @final current
You might consider voting for this if termination would match your expectations for a save: https://valheimbugs.featureupvote.com/suggestions/159711/dedicated-server-does-not-save-world-on-sigterm
Dedicated Server does not save world on SIGTERM - Valheim Bugs
I'll have a look a bit later - really want to get these mods working π
Good luck π
I'll take it!
has anyone thats set a server up before able to help me? Im trying to use filezilla to copy my existing world over to my server but none of the saves are showing up and the shockbyte tutorial im watching is different to my filezilla
losing my mind
Deleted my prior reply as I didn't realize you were using a dedicated host. Did you follow these steps? https://shockbyte.com/billing/knowledgebase/258/How-to-Upload-a-Custom-World-to-Your-Valheim-Server.html
Setting the world name in the properties file to match yours is an important step
Given that article was written possibly in 2021, it could have been before worlds_local became the main dir for the non-cloud-managed world DB files, so it's possible worlds should be replaced with worlds_local in those steps
yeah this is the tutorial im watching. At 1:23 when he clicks sava data and it opens to worlds , when I double click sava data it shows worlds_local and it wont let me open it
also for copying over the worlds , tutorial says I need to drag over the .fw and .db files but my new world doesnt show up in that file (only my old one)
I want to copy over the world BABAYAGA but it doesnt show up anywhere with the .fw .db
this could be it , but does the file I drag over still need to have .fw and .db in it like the video says?
You do need both the .fwl and .db files. They should have modified dates near when you last played the game. Your OS' file exploration program may be set to hide one or both of their file extensions by default.
The .old⦠versions will be backups and likely not what you want
I have not watched the video, but the screenshots in that article show what looks to be Microsoft Windows Explorer, and theirs is set to hide the .db extension.
oh man I suck with computer files this is burning my brainπ how do I check if the files are hidden ?
So you don't see a BABAYAGA.fwl on your game computer's worlds dir?
I dont see it in Worlds but I can see it in worlds_Local but without the .fwl .db
only my old worlds show up in the Worlds file which I dont want
Alright. My recommendation would be to start up the game, pick a character, and look at the Select World dialog. If the world you want has a cloud icon to the right of it, you want to look in your worlds dir. If it's a floppy disk icon, you want to look in worlds_local.
If your world isn't showing up in the dialog at all now, you may have accidentally moved it somewhere in your prior attempts.
I don't use Windows, but this looks right for showing all file extensions:
https://support.microsoft.com/en-us/windows/common-file-name-extensions-in-windows-da4a4430-8e76-89c5-59f7-1cdbbc75cb01
the world I want has the cloud icon but the world I dont want has the floppy disk(the name is blurred because its a corny as fuck name I made ages ago and cant change)
I just clicked the option ingame to switch my save to local and this .fwl file has showed up , would that work ?
no .db save though
Yep. And that one without the extension shown is probably the .db
I'm guessing when cloud-managed, it ended up in the Steam remote dir, which is not where we were looking. Sorry about that.
Hi. I'm having trouble with the server list and connecting to a server on my local network. The dedicated server running linux is accessible for other players via WAN but when I add the server on to my favorites tab with a external IP address then it won't show up. I've gathered that you should connect via the local ip instead, and this used to work before. However now if I add the local IP address (192.168.1.10:2456) the server shows up with the wrong server name, version AND it has 2/10 players on it which definitely isn't the case with my sever. How can a local IP show as something completly else? I've tried removing the server multiple times, even deleting the file that stores the favorites list but everytime I re-add this local IP address it identifies that a completely different server, which I'm not even able to connect to as it uses a older version. Both my client and server is running the latest version, not the public test version. I've tried verifying steam files integrety and even reinstalled valheim, no changes. I've restarted the server multiple times and even tried putting it as a public server, nothing works. What do I do now? π
thankyou for the help I appreciate it alotπ all this file stuff destroys my brain haha , im useless with it
and ive been using computers for 8ish yearsπ