We had this working completely fine until two days ago. We made no changes, but now we can’t find any sessions. No idea what has happened.
me too
Please reply back here if you find out anything. I’m really frustrated trying to troubleshoot this.
did you find out anything? im sorry i try my best but it still won work
Indeed, it works on our project as well thanks to this setting change + enabling Steam Sockets new plugin on 5.6.
We are also using this as workaround for the editor (Haven’t tried without it honestly, after hours of pain, you just want to get it working)
[/Script/Engine.Engine]
+NetDriverDefinitions=DefName=“GameNetDriver”,DriverClassName=“SocketSubsystemSteamIP.SteamNetDriver”,DriverClassNameFallback=“OnlineSubsystemUtils.IpNetDriver”)
Thanks to @Krakhat for that.
Additionally, after all the long pain to find out the issue after migration to 5.6, I must say I’m very happy that with steam sockets is possible to have the session’s latency so easily, that is a huge QoL.
That isn’t steam sockets that is the old net driver its just been moved.
If your using the old netdriver then you should also be using the following, People looking for a fix for dedicated servers I will post some info on this soon.
Here are both for people looking for this info.
UE5.6 + 5.7 Connection Fix
STEAM NET DRIVER
[SocketSubsystemSteamIP]
bAllowP2PPacketRelay=True
P2PConnectionTimeout=300
P2PCleanupTimeout = 100
[/Script/Engine.Engine]
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions=(DefName=“GameNetDriver”,DriverClassName=“SocketSubsystemSteamIP.SteamNetDriver”,DriverClassNameFallback=“/Script/SocketSubsystemSteamIP.SteamNetDriver”)
[/Script/OnlineSubsystemSteam.SteamNetDriver]
NetConnectionClassName=“/Script/SocketSubsystemSteamIP.SteamNetConnection”
STEAM SOCKET NET DRIVER
[SocketSubsystemSteamIP]
bAllowP2PPacketRelay=True
P2PConnectionTimeout=300
P2PCleanupTimeout = 100
[/Script/Engine.Engine]
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions=(DefName=“GameNetDriver”,DriverClassName=“/Script/SteamSockets.SteamSocketsNetDriver”,DriverClassNameFallback=“/Script/SteamSockets.SteamNetSocketsNetDriver”)
[/Script/OnlineSubsystemSteam.SteamNetDriver]
NetConnectionClassName=“/Scripts/SteamSockets.SteamSocketsNetConnection”
So what is the current fix for 5.6? can someone post a final complete code to copy/paste for the DefaultEngine.ini ?
There are different snippets of codes with different aproaches but every second post someone is complaining its not working for him, then for another one it worked … so what is currently working and tested?
What Plugins need to be enabled in addition to the “Online Subsystem” ?
How the build needs to be packed (developer or shipping)? or it works with both?
I started a multiplayer game, made the whole mechanics and worked so many hours, everything is working fine on LAN but no session are found “online” … if I knew I would build the whole project in 5.4 but now its too late and I am unable to downgrade it
please help!
Hey, fixed our issue after I spent two weeks trying every combination of potential fixes from forum posts and AI chats. For our dedicated server the final solution was an engine code change (adding back some Steam Online Subsystem functions that seem to have accidentally been removed).
What I believe is happening with various users saying different fixes work for them depends on their individual setup and features they are using, whether its dedicated or listen, whether its Advanced Session Plugin, SteamNetDriver, SockestNetDriver and so on.
If you are using a dedicated server through the Steam network, with SteamNetDriver or SteamSocketsNetDriver, giving this error in the console log;
LogOnline: Warning: STEAM: Unexpected GSPolicyResponse callback LogOnline: Warning: OSS: Async task ‘FOnlineAsyncTaskSteamCreateServer bWasSuccessful: 0’ failed in 15.003930 seconds
…then your only fix will be to build the engine from source with the added code that they removed shown here https://github.com/EpicGames/UnrealEngine/commit/966694c1cf129099fb02f9955916a093dcb6eff5
If you don’t get that error or are using a listen server, I don’t know if this will also solve that issue or if you need some combination of the other suggestions.
The Plugins you need to enable will depend on what Net Driver you are using, we have the SteamSockestNetDriver so have the Online Subsystem Steam and Steam Sockets plugins.
I managed to get it to work with a fix from this video
I also activated (bool true) use lobbies in the create session and find session nodes but the problem is …
it work sometimes only .. if I package a fresh build it work most of the time but after closing and reopening the game is not finding any server again … what is going on? sometime it works most of the time it is not but the config is still the same??? I dont understand the logic behind it, why it is working and the next restart it is not … ???
More info on the fix is on this thread for people looking
Has anyone been able to get server travel working using SteamSockets in Unreal 5.7?
I’m able to get clients to connect to the server, but as soon as I load a new map with server travel they all disconnect and the server loads the default game map.
If then do server travel again clients can reconnect to the server at that point.
Servertravel is broking for me too, see this post for my dirty workaround (still is in 5.7.1):