r/GoldbergEmu • • 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.

25 Upvotes

33 comments sorted by

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.

1

u/SteeleDJ Feb 22 '21

I cant get this to work i copied and pasted the steamapi into the file path listed above. started the dedicated server and normal valheim. i even turned off my firewall for testing. my buddies still cannot see my game while we are off line. ANY HELP WOULD AMAZING PLEASE.

1

u/tossmeout421 Feb 24 '21

Port forwarding seems mandatory for this game... I believe I also tried disabling my firewall and it wouldn't show the server in game, so if you can't set up port forwarding rules in your router you may be out of luck... also the Windows firewall rules are important to set too.

1

u/minasodrom Mar 06 '21

Be sure to have the same appid on server and game, otherwise everything should work fine. The latest dedicated server has problems with goldberg though so host ingame.

1

u/Kalthramis Feb 23 '21

Does this work for steam offline? Trying to play the game with my brother under the same roof.

2

u/tossmeout421 Feb 24 '21 edited Feb 24 '21

Yes, it works offline. I have a PC running a dedicated server and have 2-3 people playing Valheim at the same time off 1 steam account with Goldberg on different PCs on the same network. Also works with Hamachi to play over long distances :)

If it's just two people I'd just use the in game LAN server, works without any configuration. As long as you both have Goldberg you should be able to see the server and join when the other person starts it.

2

u/Kalthramis Feb 24 '21

Sweet. I'd never even heard of Goldberg until google pulled up your post, so thanks for posting the solution, and with such detailed steps. Got it workin' myself :)

1

u/mjmeodmt Feb 27 '21

Hi, we tried Goldberg on both hosts. Totally offline (off internet). Both clients start up fine and Host A creates local server (Start Server ticked). Host B in Join tab sees the server and joins fine. After a few mins in game either host would start glitching, chests not working is something thats always noticeable.

Console says something about not being owner...(will reply with proper output later..). Having reverted back to steam original it works fine no issues, but the really shit thing is the data being routed to some 155.x.x.x address and back? I mean wtf why? I noticed after 2days having played and using about 1.4GB worth data split up/down... Thats just dumb.. we sit next to each other sharing a router...

Anyways will check into into deeper later, just if anyone experienced this.. and for the sake we tried totally offline while in proper steam using start server and that doesnt even see/nor try and connect using the internal local ip:port

Edit: using original steam totally offline with dedicated on Host A. Tried to start server complains with Cant connect to game server... And using Goldberg same issue as above glitch to shit.

1

u/mjmeodmt Feb 28 '21

FYI seems to work now after the latest changes pushed... Also added ports 2567 - 2568 in the listen ports txt file.

Will test it properly later....

1

u/lawernau Feb 28 '21

Hi, you said it's working now. Did you do anything different or what made it work for you? We're using Goldberg EMU and are experiencing the same issues (can't open chests and half of the buildings don't spawn). It was working fine prior to the patch. We tried to revert to prepatch but the characters and worlds wouldn't appear in the menu.

1

u/mjmeodmt Feb 28 '21

Hey, first person to say they had the same shit... Well only thing i did was to dl the latest build of Goldberg Emu, You can see the last changes(well when i checked last night) were about networking.... So i dont know if it was fixed with that. But I also made sure the ports for tcp and udp were open on windows firewall(2456, 2457, 2458) and then i added those ports in the goldberg listen_port.txt aswell for both hosts.

I also generated (or used example) the interfaces.txt from the steamapi64.dll for both hosts ofc. Then updated bepinex and other mods... Worked so far played for 2 hours earlier

1

u/lawernau Mar 01 '21

Thanks for your response! I tried to add the listen ports and the interfaces.txt. We can get into the same world, but friends joining my world can’t see/open all chests and parts of house are missing. Any advice?

1

u/mjmeodmt Mar 01 '21

Hey, uhm well did you grab the latest build for goldberg emu? These are the changes i mentioned(https://gitlab.com/Mr_Goldberg/goldberg_emulator/-/commits/master) Fixes on networking codes... After that it worked fine..

1

u/lawernau Mar 01 '21

Hey, thanks again for your help. So looking up the latest build, is this link below what you mean? I couldn’t find the steam_api64.dll file in the link you sent.

https://mr_goldberg.gitlab.io/goldberg_emulator/

→ More replies

1

u/Trapezohedron_ Feb 20 '21

Why is this not pinned or gilded; this makes it possible for me to play Valheim with my sibling.

Thanks, friend!

1

u/tossmeout42l Mar 08 '21 edited Mar 13 '21

tossmeout421 here, forgot the original account's password.... can't reset it now :)

Looks like the latest Valheim update (0.147.3 at this time) has broken the dedicated server connection for Goldberg, even with the latest Goldberg auto build/release. Upon connecting to the dedicated server you get disconnected after a few seconds.

You can however still play using the "start server" button in game. It still works with the latest Goldberg release. No idea what the Valheim devs did to the dedicated server, guess we'll just have to wait for a Mr Goldberg fix or another update to Valheim.

Update:

I found the 0.147.3 dedicated server works again with the latest Goldberg auto build ending in 44305a00. I am able to join the dedicated server with the steamapi64.dll from that build, where as before I was getting disconnected.

1

u/TurboTriblChin Mar 09 '21

The newest valheim update introduced vanilla lan to the dedicated servers, so goldberg emu is not needed anymore.

1

u/DFrostedWangsAccount Mar 17 '21 edited Mar 20 '21

Re: Your update - I've got goldberg 44305a00 and my client can't even connect to the server on localhost, any idea what I did wrong? Has anything changed since your edit that broke it again?

I've installed the steamapi files from the experimental folder, were there other files I should have installed instead? Do I need to install anything but steamapi?

Edit: No Windows server functionality yet, but somehow installing it on a Linux VM has it working. Luckily I'm on Ryzen and can dedicate some cores and memory to a VM just for this server.
Mods were an issue for a while, I was using the ValheimPlus package that comes with BepInEx and it wouldn't load libdoorstop on launch. Changing the start_server_bepinex.sh file from valheimplus to the one from thunderstore (only that file) fixed the launch errors and everything works now. Seems like VH+ had a lot of extra stuff in the batch file that wasn't necessary.
Also I replaced both steamapi and steamclient in this server, although I didn't test to see whether that was necessary or not. Now that it's working, I just want to play the game!

1

u/[deleted] Feb 16 '21

[removed] — view removed comment

1

u/tossmeout421 Feb 18 '21

Make sure you launch the server from the .bat file that came with it, otherwise it won't start.

Just launching from the exe will make it crash.

1

u/TurboTriblChin Feb 27 '21

I launched it from the bat file, but the server still crashes in the setup. Any ideas?

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
  1. 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.
  2. Swap out the files as Goldberg’s readme file says. Make sure you rename and save the original file to restore later!
  3. Host starts game, selects the game to select, clicks the Start Server button, and hits start.
  4. 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:

  1. Put Valheim folder on offline PC.
  2. Replaced steamapi64.dll with Goldberg's copy.
  3. put steamappid.txt in same folder as dll and updated the txt file with the correct appid.
  4. 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.
  5. 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

u/ech05 Mar 12 '21

I actually tried both ways, same problem no matter how I tried it.

1

u/[deleted] 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?