Valheim

Valheim

garyp156 Mar 29, 2021 @ 3:33pm
Need some server help please?
I set up a dedicated server on my other PC. I used a guide I found here:
https://www.pcgamer.com/valheim-multiplayer-dedicated-server/

It said to use the Steam version and not to go through SteamCMD as I did for Conan.

I opened ports 2456-2458 both TCP/UDP on my router, and pointed them to my server PC which has a static IP.
The first time I started the server, Windows firewall asked for permissions which I gave, so that's not the issue.

So what's happening?

I can see my server when I run Valheim from my desktop in the Community list, but my 2 friends can not.
They Can however connect by IP address. We looked in Steam (View/Servers) and I can see my server but they can not. I gave it a few hours while we played in case it was a DNS issue.

Any ideas, or questions?
< >
Showing 1-11 of 11 comments
N0ma13 Mar 29, 2021 @ 3:40pm 
Always use steamcmd to set up dedi's for steam games.
Always.

Check your configs and make sure you have the right public set. As I've only been hosting val from local (start server - friends only) I haven't messed with the val configs yet, but if anything like almost every other steam game you can modify your public ip. Using not steamcmd might have changed the entry. I think the default is public1 for val with a quick google.
Last edited by N0ma13; Mar 29, 2021 @ 3:44pm
garyp156 Mar 29, 2021 @ 3:54pm 
Originally posted by N0ma13:
Always use steamcmd to set up dedi's for steam games.
Always.

Check your configs and make sure you have the right public set. As I've only been hosting val from local (start server - friends only) I haven't messed with the val configs yet, but if anything like almost every other steam game you can modify your public ip. Using not steamcmd might have changed the entry. I think the default is public1 for val with a quick google.
Hey N0ma13, thanks for the reply.

I was going to set up the command for -public 1. Friends only would be my first choice.
I guess it means -public 0.
I left it out. Maybe that's how I hosed it. lol

Where did you find the info to get it rolling on SteamCMD? I'm only finding the Dedicated server inside of Steam. That means I need to log into Steam on my server to get an update.

This maybe?
https://www.shacknews.com/article/122720/how-to-set-up-a-valheim-dedicated-server#download-valheim-dedicated-server-SteamCMD
N0ma13 Mar 29, 2021 @ 4:20pm 
That link works. There's some guides on steam as well, basically the same.
I just spun up a dedi to test. There is no place for your public IP that I see so that won't be it.
-public 1 shows the server on the community list. Blank or -public 0 sets it to friends but they should see it on the friends server list I believe.

See if you can see ATestServer on the community list.
N0ma13 Mar 29, 2021 @ 4:33pm 
Also use port 2457 for steam view servers.
PopulationControl Mar 29, 2021 @ 5:09pm 
Have you allowed ports for steam query? Try opening a port range of 27015-27017 and test if they can then see your server, if not, the only recommendation I could say is to tell us the server name, but NOT the password. A password is required, regardless if server is public or private. The reason is those of us subscribed to the thread could state if the server shows up for us or not. Unfortunately there could be some trolls in here and they would just ruin the test.
@echo off set SteamAppId=892970 echo "Starting server PRESS CTRL-C to exit" valheim_server -nographics -batchmode -savedir "C:\Users\Server\Valheim_dedi\Saved\IronGate\Valheim" -name "Pop's Valheim" -port 2456 -world "Dedicated" -password "*****"
garyp156 Mar 30, 2021 @ 7:15am 
I tried adding -public 1 and my friend still can't see the server.
Using Valheim 2456-2458 2456-2458

My Conan Exiles Server 7777-7778,27015-27018 works fine. I may try and set this up not using the Steam Valheim server but use the SteamCMD.
garyp156 Mar 30, 2021 @ 7:18am 
Originally posted by N0ma13:
That link works. There's some guides on steam as well, basically the same.
I just spun up a dedi to test. There is no place for your public IP that I see so that won't be it.
-public 1 shows the server on the community list. Blank or -public 0 sets it to friends but they should see it on the friends server list I believe.

See if you can see ATestServer on the community list.

No, neither of us can see ATestServer this morning.
N0ma13 Mar 30, 2021 @ 7:54am 
Originally posted by garyp156:
Originally posted by N0ma13:
That link works. There's some guides on steam as well, basically the same.
I just spun up a dedi to test. There is no place for your public IP that I see so that won't be it.
-public 1 shows the server on the community list. Blank or -public 0 sets it to friends but they should see it on the friends server list I believe.

See if you can see ATestServer on the community list.

No, neither of us can see ATestServer this morning.
Let me spin it back up. I spun down and destroyed last night.

When you add to steam/view make sure you add with :2457.
Seems 2456 is game port, 2457 is steam/view, assuming 2458 is the community view.
garyp156 Mar 30, 2021 @ 8:12am 
This morning I tried changing my port to 2457. Tried adding my external IP into the steam favorites. It said Server not responding.
I was reading a lot of sites and this seems to be a common issue with the Valheim dedicated server. Some see it and some don't. They say it's a game issue and not a user/steam issue.

It's funny but the whole reason I'm doing the dedicated server thing is to take the weight off of my local machine when playing with my 2 friends. The game saves often and it just lags for like 3-5 seconds.
It's not as bad on the server last night when we all played. (They connected to me by external IP:port)
Last edited by garyp156; Mar 30, 2021 @ 8:15am
N0ma13 Mar 30, 2021 @ 8:35am 
ATestServer is back online.
I made no special changes to the system beside -public 1 in the batch file.
In steam/view if i add just the ip and search for games it does not see the server, if i add :2457 to the ip and search it pulls up ATestServer.

If you're still having issues getting yours to show up:
1. verify your forwards, make sure you put the right start and finish or used a - and not a , (depending on router model). IE: My router takes a start port (2456) and end port(2458) while some routers will take it in range form (2456-2458). Also make sure you did select tcp/udp and not just tcp.
Obviously at least 2456 is forwarded or they wouldn't be able to connect via ip. (unless it's using the steam networking. The server I acutally host is not a dedi and i wasn't using forwards - had external players) I believe the dedi does require the forwards though.
2. Do you need it to be visible on the community list? If your friends can connect via IP and you don't want randoms anyway, is there an issue? Do you have a frequently changing IP?

If there's a known bug where even correct settings fail to show on comm list then you may just be experiencing it.
garyp156 Mar 30, 2021 @ 12:11pm 
I think if my friends can connect via direct IP then I'll leave it alone. :lunar2020ratinablanket:
BTW, I can't see ATestServer.

Thanks for the help.
< >
Showing 1-11 of 11 comments
Per page: 1530 50

Date Posted: Mar 29, 2021 @ 3:33pm
Posts: 11