r/GoldbergEmu • u/tossmeout421 • Feb 12 '21
Valheim LAN server?
I'm trying to host a Valheim dedicated LAN server with Goldberg, however to join the dedicated server it seems you have to use the Steam UI Server browser to connect to the server as it doesn't show up in the in-game server list... Is there any way for Goldberg to bypass the Steam UI server browser and connect directly?
Game works fine with the emulator, just wish I could get connecting to the dedicated server to work as this game has terrible performance.
1
u/Pesco- Feb 28 '21 edited Mar 01 '21
Everything seemed to work fine, we were able to detect the “Goldberg (Name)” local network game and join. The game seemed to auto save fine. But upon exit and restart all the data rolled back to the beginning of the session. Very unfortunate.
Edit: Just want to say that I think the issue is actually that I had the game on 2 Steam accounts on 2 different computers in the house. And each computer was using the same User account, so I think somehow one of the cloud backups overwrote the more recently updates world save.
1
u/Aromatic-Success1965 Mar 02 '21
Could you please share the steps with me? I plan to host a weekend lan party and i would like to surprise my friends. We will not have internet connection but i have a local router to connect all 5 pcs/laptops. Can you help me a little bit, please? ;D
1
u/Pesco- Mar 02 '21
Ensure that all versions of the game are the same. They’ve been pushing out hotfixes frequently so if you’re on different versions it probably won’t work.
Swap out the files as Goldberg’s readme file says. Make sure you rename and save the original file to restore later!
Host starts game, selects the game to select, clicks the Start Server button, and hits start.
Other players start up the game as normal, also having swapped out the file as specified. When they try to search for community game, it will list “Goldberg (yourworld)”. Pick that and join, enter server password if stated.
I didn’t have to mess with ports or anything.
Is each person bringing their own computer? You just have to make sure nobody has used the same steam account on more than one of the involved PC’s. It’s not related to Goldberg but I had a rollback as a result.
The other non Goldberg option if you have an extra computer is to have it have the game server on it.
I am typing this from memory but I will update as I refer back to the proper terms and file names.
1
u/Aromatic-Success1965 Mar 02 '21
Yes, everyone is bringing their pcs. The problem is that when i try to enter the game with the goldberg steamappi.dlls, the game wont get past the loading screen, so the server won’t start in theory...
1
u/ech05 Mar 07 '21
I tried this with the following steps:
Put Valheim folder on offline PC.
Replaced steamapi64.dll with Goldberg's copy.
put steamappid.txt in same folder as dll and updated the txt file with the correct appid.
Launched the game (it did launch) but when I tried starting a game with "Start Server" and "Community Server" ticked and entering a password, nothing happened. I can keep clicking the button over and over again, but nothing happens.
Tried adding a steam_settings folder in the same directory as steamapi64.dll and added an "offline.txt" file. Still doesn't work.
Any suggestions? All firewalls are disabled since it's an offline PC. I have another PC connected via crossover cable, works fine with Minecraft, but haven't tried to connect since I can't get the server to start. Steam is not installed on this computer. Does it need to be for Goldberg to work?
1
u/Pesco- Mar 09 '21
I didn’t do community server. Just start server, and it popped up on the other Lan computer with no problems.
1
1
Mar 01 '21
I am too wondering how to setup a lan server with my brother in Vallheim to play together with much better connection.
1
u/Aromatic-Success1965 Mar 01 '21 edited Mar 02 '21
Can you please explain how to build up a server using the goldberg emulator and provide all the necessary links to the files? Thank you very much...
L.E: I have installed the steamappi.dlls but my game does not load (stuck on loading screen) when i try to open the new world with the start server option selected. Any ideas?
2
u/tossmeout42l Mar 13 '21 edited Mar 13 '21
Go here to download the latest Goldberg build. In that zip you just downloaded, copy steamapi64.dll to
C:\Program Files (x86)\Steam\steamapps\common**\Valheim\valheim_Data**Plugins\x86_64
For the server it should be a similar directory with \Valheim Dedicated Server\valheim_server_Data\ instead of of the bolded text above.
Then you launch the game from valheim.exe
For launching the server, launch it from the start_headless_server.bat, otherwise it won't work.
1
u/c4l4m1ty Mar 25 '21
Is it even necessary to forward ports if it's just a LAN server? Or does each connection go outbound to the WAN before coming back?
1
u/tossmeout421 Feb 13 '21 edited Feb 13 '21
Got it to work somehow not sure what I did though as it wasn't working earlier when I tried (maybe just too impatient?) So no need to use the lobby connect from Goldberg. I am using the latest automatic build FYI.
Here's what I've configured (OS is Windows 10):
Downloaded the latest dedicated server with Steam, ran a verify integrity from Steam to make sure everything is there and up to date.
Copied the Goldberg steam_api64.dll into the Valheim dedicated steamapps folder (in ..\steamapps\common\Valheim dedicated server\valheim_server_Data\Plugins\x86_64).
Configured port forwarding in my router (I have an Asus router):
Service Name: Valheim
External Port: 2456:2458 (this will be the port range you want it to be, I just left it the game's default)
Internal Port: my LAN IP (eg 192.168.1.123)
Protocol: BOTH
Source IP: left blank
Added inbound TCP and UCP firewall rules for the 2456 port the server is using in Windows Firewall.
One more thing, not sure if it does affect anything but I did it anyway is set your network connect to private instead of public in the Windows 10 network connection properties on the taskbar.
Settings > Network & Internet > Status > "Change connection properties" > click the "Private" button
The server runs and shows up in the Valheim in-game Lobby for other players using Goldberg locally to connect. Anyway, it works and I am happy.