OnlineSubsystemSteam not working

Hello,

I´m trying to make a Multiplayer game with Steam in ue5, but when I run the game on a different machine with a different Steam account and create a session I can not find it on my main machine. Steam starts with the game and the game works fine with Subsystem NULL.

my DefaultEngine.ini looks like this:

[/Script/Engine.GameEngine]
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="OnlineSubsystemSteam.SteamNetDriver",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")

[OnlineSubsystem]
DefaultPlatformService=STEAM

[OnlineSubsystemSteam]
bEnabled=true
SteamDevAppId=480
GameServerQueryPort=27015
bInitServerOnClient=true

[/Script/OnlineSubsystemSteam.SteamNetDriver]
NetConnectionClassName="OnlineSubsystemSteam.SteamNetConnection"

I also added this at line 240: Session->SessionSettings.bUseLobbiesIfAvailable = true;
in the OnlineSessionInterfaceSteam.cpp as this fixed a bug where you could not join a Steam session in ue5

In the Build.cs file I added this:

PrivateDependencyModuleNames.AddRange(new string[] { "OnlineSubsystem", "OnlineSubsystemNull", "OnlineSubsystemSteam" });

When I launch two instances of the game (with OnlineSubsystemSteam enabeld) on one machine (I know this can not work) it finds the session (but doesn´t join) and when I try creating a second one it says Cannot create session : session already exists.

I ran out of ideas and can not find anything about this in the forums.
Any help is greatly appreciated!

Seems about right; editing OnlineSessionInterfaceSteam.cpp was a missing piece that prevented Steam Sessions from working in 4.27 and 5.0.
Does your project connect to Steam on both computers when you launch it?

Yes, Steam connects on both computers when I launch the game and I can open the Steam overlay.