Valheim

Valheim

Scribe Ro Aug 5, 2022 @ 7:29am
Connection Error
So I'm having a weird error connecting to a friends server. I have checked online for a few hours and anything I find is about connecting to a server on your own computer, and a year old. Also there seems to be no solutions that I can do (not my server) So here is the problem.

08/05/2022 09:13:31: Got status changed msg k_ESteamNetworkingConnectionState_ProblemDetectedLocally
08/05/2022 09:13:31: Got problem 5003:Timed out attempting to connect

The connection stops instantly it looks like. This is a clean install with no mods installed and I removed Bepinex just to make sure. Anybody else have this issue and find out how to fix it?
Originally posted by Scribe Ro:
I Discovered the problem. While the router port was open and I allowed the app access to my firewall, my anti-virus updated and closed the port. So once the port on my router AND anti-virus was open it started to work.

So I had to allow the app, and open a port both, which is weird I normally just have to allow the app.

Still, thank you for helping.
< >
Showing 1-8 of 8 comments
Scribe Ro Aug 5, 2022 @ 8:06am 
This might not be all that is needed so here is the full log. I removed censor area because I don't want the post taken down.

Mono path[0] = 'C:/Program Files (x86)/Steam/steamapps/common/Valheim/valheim_Data/Managed'
Mono config path = 'C:/Program Files (x86)/Steam/steamapps/common/Valheim/MonoBleedingEdge/etc'
Initialize engine version: 2020.3.33f1 (915a7af8b0d5)
[Subsystems] Discovering subsystems at path C:/Program Files (x86)/Steam/steamapps/common/Valheim/valheim_Data/UnitySubsystems
GfxDevice: creating device client; threaded=1
Direct3D:
Version: Direct3D 11.0 [level 11.0]
Renderer: NVIDIA GeForce GTX 960M (ID=0x139b)
Vendor:
VRAM: 4064 MB
Driver: 21.21.13.7654
Begin MonoManager ReloadAssembly
- Completed reload, in 0.237 seconds
<RI> Initializing input.

<RI> Input initialized.

<RI> Initialized touch support.

UnloadTime: 1.451000 ms
08/05/2022 09:57:39: Starting to load scene:start
Couldn't create a Convex Mesh from source mesh "default" within the maximum polygons limit (256). The partial hull will be used. Consider simplifying your mesh.
Couldn't create a Convex Mesh from source mesh "default" within the maximum polygons limit (256). The partial hull will be used. Consider simplifying your mesh.
Unloading 6 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 7.933800 ms
Only custom filters can be played. Please add a custom filter or an audioclip to the audiosource (Amb_MainMenu).
08/05/2022 09:57:53: Using environment steamid 892970
08/05/2022 09:57:53: Using steam APPID:892970
08/05/2022 09:57:53: Authentication:k_ESteamNetworkingAvailability_Attempting
08/05/2022 09:57:53: Steam initialized, persona:MiDaRo
08/05/2022 09:57:53: Using default prefs
08/05/2022 09:57:53: Valheim version:0.209.10
08/05/2022 09:57:53: Render threading mode:MultiThreaded
08/05/2022 09:57:53: Missing audio clip in music respawn
08/05/2022 09:57:53: Checking for installed DLCs
08/05/2022 09:57:53: DLC:beta installed:False
08/05/2022 09:57:53: Builder started
08/05/2022 09:57:54: Loaded localization CSV:localization language:English
08/05/2022 09:57:54: Loaded localization CSV:localization_extra language:English
08/05/2022 09:57:54: Loaded localization CSV:localization language:English
08/05/2022 09:57:54: Loaded localization CSV:localization_extra language:English
08/05/2022 09:57:55: Vis equip model set to 1
08/05/2022 09:57:55: UI Group status changed Menu = True

Unloading 16 unused Assets to reduce memory usage. Loaded Objects now: 106663.
Total: 72.725700 ms (FindLiveObjects: 4.928800 ms CreateObjectMapping: 14.210500 ms MarkObjects: 53.422600 ms DeleteObjects: 0.163600 ms)

08/05/2022 09:57:58: UI Group status changed Menu = True
08/05/2022 09:58:02: FOund selected Start game
08/05/2022 09:58:02: show character selection
08/05/2022 09:58:04: Vis equip model set to 1
08/05/2022 09:58:06: Vis equip model set to 1
08/05/2022 09:58:07: Vis equip model set to 1
08/05/2022 09:58:08: OnCharacterStart



08/05/2022 09:58:16: connect to ip:147.135.30.210 port:4660
Unloading 6 Unused Serialized files (Serialized files now loaded: 0)
UnloadTime: 42.320800 ms
08/05/2022 09:58:17: Steam initialized, persona:MiDaRo
08/05/2022 09:58:17: Using default prefs
08/05/2022 09:58:17: Loading player profile callenite
08/05/2022 09:58:17: isModded: False
08/05/2022 09:58:17: Zonesystem Awake 538
08/05/2022 09:58:17: DungeonDB Awake 538
08/05/2022 09:58:17: Steam initialized, persona:MiDaRo
08/05/2022 09:58:17: Audioman already exist, destroying self
08/05/2022 09:58:17: Checking for installed DLCs
08/05/2022 09:58:17: DLC:beta installed:False

Unloading 540 unused Assets to reduce memory usage. Loaded Objects now: 106389.
Total: 69.438100 ms (FindLiveObjects: 3.991700 ms CreateObjectMapping: 12.420600 ms MarkObjects: 51.882200 ms DeleteObjects: 1.143200 ms)

08/05/2022 09:58:25: Zonesystem Start 538
08/05/2022 09:58:25: Added 3 locations, 0 vegetations, 0 environments, 0 biome env-setups from locations_cp1
08/05/2022 09:58:25: Added 1 locations, 0 vegetations, 1 environments, 0 biome env-setups from locations_mountaincaves
08/05/2022 09:58:25: DungeonDB Start 538
08/05/2022 09:58:25: Connecting to server 147.135.30.210:4660
08/05/2022 09:58:25: Starting to connect to 147.135.30.210:4660
08/05/2022 09:58:26: Got status changed msg k_ESteamNetworkingConnectionState_Connecting
08/05/2022 09:58:26: New connection
08/05/2022 09:58:36: Got status changed msg k_ESteamNetworkingConnectionState_ProblemDetectedLocally
08/05/2022 09:58:36: Got problem 5003:Timed out attempting to connect
08/05/2022 09:58:36: Closing socket 0
08/05/2022 09:58:36: Closing socket 0
08/05/2022 09:58:36: send queue size:0
08/05/2022 09:58:36: Got status changed msg k_ESteamNetworkingConnectionState_None
08/05/2022 09:58:36: Disposing socket
08/05/2022 09:58:36: Last socket, unregistering callback
08/05/2022 09:58:36: ZSteamSocket UnregisterGlobalCallbacks, existing sockets:0
08/05/2022 09:58:36: Disposing socket
08/05/2022 09:58:36: Last socket, unregistering callback
08/05/2022 09:58:36: ZSteamSocket UnregisterGlobalCallbacks, existing sockets:0
08/05/2022 09:58:37: Lost connection to server:ErrorConnectFailed
08/05/2022 09:58:37: Shuting down
08/05/2022 09:58:37: Steam Cloud Save: 8617 bytes. /characters/callenite.fch.new
08/05/2022 09:58:37: Steam Cloud Move: 8617 bytes. /characters/callenite.fch -> /characters/callenite.fch.old
08/05/2022 09:58:37: Steam Cloud Move: 8617 bytes. /characters/callenite.fch.new -> /characters/callenite.fch
08/05/2022 09:58:37: ZNet Shutdown
08/05/2022 09:58:37: Sending disconnect msg
Unloading 7 Unused Serialized files (Serialized files now loaded: 0)
08/05/2022 09:58:38: ZNet OnDestroy
08/05/2022 09:58:38: Net scene destroyed
UnloadTime: 645.027500 ms
Only custom filters can be played. Please add a custom filter or an audioclip to the audiosource (Amb_MainMenu).
08/05/2022 09:58:38: Steam initialized, persona:MiDaRo
08/05/2022 09:58:38: Using default prefs
08/05/2022 09:58:38: Valheim version:0.209.10
08/05/2022 09:58:38: Render threading mode:MultiThreaded
08/05/2022 09:58:38: Audioman already exist, destroying self
08/05/2022 09:58:38: Checking for installed DLCs
08/05/2022 09:58:38: DLC:beta installed:False

Unloading 280 unused Assets to reduce memory usage. Loaded Objects now: 105515.
Total: 77.076000 ms (FindLiveObjects: 4.845500 ms CreateObjectMapping: 10.864800 ms MarkObjects: 60.254800 ms DeleteObjects: 1.110400 ms)

08/05/2022 09:58:39: Vis equip model set to 1



08/05/2022 09:58:43: FOund selected ButtonOk
08/05/2022 09:58:43: UI Group status changed Menu = True
electricdawn Aug 5, 2022 @ 8:17am 
It says there is a "local problem" and that the connection times out.

Since you happen to have used mods, let's rule them out first. This may seem redundant to you, but I have seen issues with mods still persisting even though the user insisted on having them uninstalled all.

So, please bear with me and follow the steps below:
1. Restart your computer.
2. Uninstall Valheim through Steam.
3. Go to here:
C:\Program Files (x86)\Steam\steamapps\common
... and delete the folder "Valheim" if still present.
4. Reinstall Valheim.

First check out if everything works locally, then try to connect. Please report back.

Thank you.
Scribe Ro Aug 5, 2022 @ 10:54am 
Okay, so I did that. Uninstall, delete folder, deleted the AppData folder as well (where it stores the log file) and reinstalled using steam, even as far as removing -console from the file setup when right clicking the game in the library. I still have the same issues.

Thank you for helping by the way. I sent a message the the devs and got no responce.

08/05/2022 12:45:50: Zonesystem Start 917
08/05/2022 12:45:50: Added 3 locations, 0 vegetations, 0 environments, 0 biome env-setups from locations_cp1
08/05/2022 12:45:50: Added 1 locations, 0 vegetations, 1 environments, 0 biome env-setups from locations_mountaincaves
08/05/2022 12:45:50: DungeonDB Start 917
08/05/2022 12:45:51: Connecting to server 147.135.30.210:4660
08/05/2022 12:45:51: Starting to connect to 147.135.30.210:4660
08/05/2022 12:45:51: Got status changed msg k_ESteamNetworkingConnectionState_Connecting
08/05/2022 12:45:51: New connection
08/05/2022 12:46:01: Got status changed msg k_ESteamNetworkingConnectionState_ProblemDetectedLocally
08/05/2022 12:46:01: Got problem 5003:Timed out attempting to connect
08/05/2022 12:46:01: Closing socket 0
08/05/2022 12:46:01: Closing socket 0
08/05/2022 12:46:01: send queue size:0
08/05/2022 12:46:01: Got status changed msg k_ESteamNetworkingConnectionState_None
08/05/2022 12:46:01: Disposing socket
08/05/2022 12:46:01: Last socket, unregistering callback
08/05/2022 12:46:01: ZSteamSocket UnregisterGlobalCallbacks, existing sockets:0
08/05/2022 12:46:01: Disposing socket
08/05/2022 12:46:01: Last socket, unregistering callback
08/05/2022 12:46:01: ZSteamSocket UnregisterGlobalCallbacks, existing sockets:0
08/05/2022 12:46:01: Lost connection to server:ErrorConnectFailed
08/05/2022 12:46:01: Shuting down
electricdawn Aug 5, 2022 @ 1:06pm 
1. Does it work with a local world?
2. Have you opened the necessary ports in your router?
3. Have you allowed the Windows firewall to pass through Valheim?
4. If you have an antivirus solution (more like problem) did you allow Valheim to connect to servers outside your local network?
Scribe Ro Aug 5, 2022 @ 2:43pm 
1 No idea.
2 I don't know...
I was assuming that he had to do that as the host, as other people connect I likewise assume he did
As far as my side, I did not, nor do I know how to do this...
3 Yes
4 Yes
electricdawn Aug 6, 2022 @ 12:34am 
1. Try it with a local world to make sure Valheim is correctly working on your end.
2. You need to if your router does not pass through the correct ports. Some do, some don't.

I think there was a guide on Steam on how to do that. I'll go try find it.

Edit: I don't think there's anything much applicable here. You need to find the user manual of your router model and look for "port forwarding".

The actual ports that need to be forwarded are 2456 and 2457. I would just forward both these and both TCP and UDP, just to make sure.
Last edited by electricdawn; Aug 6, 2022 @ 3:11am
A moderator of this forum has indicated that this post answers the original topic.
Scribe Ro Aug 7, 2022 @ 6:46am 
I Discovered the problem. While the router port was open and I allowed the app access to my firewall, my anti-virus updated and closed the port. So once the port on my router AND anti-virus was open it started to work.

So I had to allow the app, and open a port both, which is weird I normally just have to allow the app.

Still, thank you for helping.
electricdawn Aug 7, 2022 @ 10:39am 
Looks I got you on the right path. The most important part though is that you figured it out yourself! :)
< >
Showing 1-8 of 8 comments
Per page: 1530 50

Date Posted: Aug 5, 2022 @ 7:29am
Posts: 8