Valheim

Valheim

Seeweedcat Jul 13, 2024 @ 9:57am
NEED HELP with hosting Valheim server on home server
Hello all,

I've been spending most of my night trying to figure this one out:

I've got an OptiPlex micro (i5-8500t, no graphic's card, just integrated graphics) server set up with proxmox running a windows 10 VM. It's got a Minecraft server that I set up that works. When following the steps to setup the valheim server on the OptiPlex, I can't connect to the server. The server DOES show up in my steam server browser and in the in-game browser, but when I try to connect I get a "can't connect" error. I've made sure the ports are open and forwarded both in my router's firewall and window's firewall.

Here's the weird thing. I did the SAME exact process, step by step, with my gaming pc (has a graphics card in it). Same exact port forwarding settings (change of IP), same server config settings, same microsoft visual studio c++ redistributables installed. It just seems to not want to work on my home server. If anyone has any ideas I would appreciate it.

In the start_headless_server.bat file (when started up and rolling), at the end I get 2 repeating lines, "Playfab reconnect server "My server" and "Server 'My Server' begin Playfab create and join network for server. (seems weird that it says "my server" instead of my server name "Server test Server". I do not get this with the server on my gaming rig.

I find it hard to believe that the hardware in the optiplex would be an issue. its got 16 gb ram, 256gb storage, and an 8th gen i5. runs the minecraft server extremely well.

Thanks!
Originally posted by Zathabar:
If you’re using the Crossplay backend (enabled using the “-crossplay” argument), you do not need to do Port Forwarding on your Router. The Port number is still used to distinguish between multiple servers on the same public IP address.

Hmm that's from the manual so maybe try it with either no crossplay or Only crossplay and no forwarding just to eliminate that being the casue of the "echo" in commands?
< >
Showing 1-7 of 7 comments
burn Jul 13, 2024 @ 12:17pm 
I may be able to help,. I sent you a friends request.
Zathabar Jul 13, 2024 @ 6:02pm 
Hmm is there a reason to run it on a VM? I'd try it nativly first myself unless you have a very pressing need not to?

The hardware specs fine for a Valserver its not that.

I am assuming you are using the latestt version of Dedicated server OFC? A miss match their could cause the drop. The curious "echo" of My server interests me? Suggests somethings running twice after all? Whats you BAT file config may I ask (not the password ofc!!)
Seeweedcat Jul 13, 2024 @ 6:34pm 
Originally posted by Zathabar:
Hmm is there a reason to run it on a VM? I'd try it nativly first myself unless you have a very pressing need not to?

The hardware specs fine for a Valserver its not that.

I am assuming you are using the latestt version of Dedicated server OFC? A miss match their could cause the drop. The curious "echo" of My server interests me? Suggests somethings running twice after all? Whats you BAT file config may I ask (not the password ofc!!)


Running it on a proxmox VM only really because I want to access the server from my desk rig and not have to hook up a monitor to it. Also I'm needing to learn proxmox for my job, so I saw this as a way to get experience.

Does OFC mean "Of Course"? sorry if I misunderstand that.
I just set up the server and VM two nights ago, so I assume everything is the latest package for proxmox and the window's install.

BAT file config is:
valheim_server -nographics -batchmode -name "Server test Server" -port 2456 -world "Server test World" -password ******** -crossplay
Faceplant Jul 13, 2024 @ 6:44pm 
I don't understand what the purpose of Proxmox is these days, since it's so much easier to do this in Docker/Kubernetes.

Assuming you're trying to spin up the server in a Windows VM, you could install Docker Desktop and just run this server: https://github.com/lloesche/valheim-server-docker, which is what I run, and it's very easy to spin up.

If you really want to use a VM, I would install a Linux VM, like Ubuntu, install docker and Portainer on it, and use that. You could also do that on the OptiPlex as well, which would be much more easy and efficient.
Last edited by Faceplant; Jul 13, 2024 @ 6:45pm
The author of this thread has indicated that this post answers the original topic.
Zathabar Jul 13, 2024 @ 6:58pm 
1
If you’re using the Crossplay backend (enabled using the “-crossplay” argument), you do not need to do Port Forwarding on your Router. The Port number is still used to distinguish between multiple servers on the same public IP address.

Hmm that's from the manual so maybe try it with either no crossplay or Only crossplay and no forwarding just to eliminate that being the casue of the "echo" in commands?
Seeweedcat Jul 13, 2024 @ 8:03pm 
Originally posted by Zathabar:
If you’re using the Crossplay backend (enabled using the “-crossplay” argument), you do not need to do Port Forwarding on your Router. The Port number is still used to distinguish between multiple servers on the same public IP address.

Hmm that's from the manual so maybe try it with either no crossplay or Only crossplay and no forwarding just to eliminate that being the casue of the "echo" in commands?

I fixed it! It was related to the "-crossplay" you mentioned. I took out that figure and it still did not work. Was watching a video and in the video the config had "-public 1" in place of "-crossplay". valheim server is up and running with friends playing on it. Thank you all for your help, especially Zathabar.
Zathabar Jul 14, 2024 @ 8:43am 
Oh that's grand! I wasn't a 100% sure but figured work through possible anomalies is a tried and trusted method so..

Glad to hear you and friends are up and running!
< >
Showing 1-7 of 7 comments
Per page: 1530 50

Date Posted: Jul 13, 2024 @ 9:57am
Posts: 7