Can't find steam lobby

hello.
I am taking an Unreal C++ multiplayer class in Unreal 5.2.
Lecture 65 I am unable to proceed after “Presence” in the Steam lobby.
I am unable to find the lobby after hosting. I’m checking and following the code changes in the lecture, but it doesn’t work.

Log that appears when searching for a lobby

[2023.10.18-01.37.13:483][500]LogOnline: Warning: OSS: Async task 'FOnlineAsyncTaskSteamFindLobbiesForFindSessions bWasSuccessful: 0 NumResults: 1' failed in 15.038288 seconds

Session creation code

void UPuzzlePlatformsGameInstance::CreateSession()
{
	if (false == SessionInterface.IsValid())
	{
		return;
	}

	FOnlineSessionSettings sessionSettings;
	sessionSettings.bIsLANMatch = false;
	sessionSettings.NumPublicConnections = 2;
	sessionSettings.bShouldAdvertise = true;
	sessionSettings.bUsesPresence = true;

	//이거 추가하니 로비 진입 안되던 현상 수정 
	sessionSettings.bUseLobbiesIfAvailable = true;

	if (false == SessionInterface->CreateSession(0, SESSION_NAME, sessionSettings))
	{
		UE_LOG(LogTemp, Error, TEXT("Create session fail"));
		return;
	}

	UE_LOG(LogTemp, Warning, TEXT("Create session"));
}

lobby renewal code

void UPuzzlePlatformsGameInstance::RefreshServerList()
{
	SessionSearch = MakeShareable(new FOnlineSessionSearch());
	if (SessionSearch.IsValid())
	{
		SessionSearch->MaxSearchResults = 100;
		SessionSearch->QuerySettings.Set(SEARCH_PRESENCE, true, EOnlineComparisonOp::Equals);
		UE_LOG(LogTemp, Warning, TEXT("Starting Find Session"));
		if (false == SessionInterface->FindSessions(0, SessionSearch.ToSharedRef()))
		{
			UE_LOG(LogTemp, Error, TEXT("Find Session Fail"));
			return;
		}

		UE_LOG(LogTemp, Warning, TEXT("RefreshServerList"));
	}
}

Have you applied changes to the DefaultEngine.ini?

Yes, I added the following settings to defaultEngine.ini.

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

[OnlineSubsystem]
DefaultPlatformService=Steam

[OnlineSubsystemSteam]
bEnabled=true
SteamDevAppId=480

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

Are you trying this in the editor or a packaged build.?

In Powershell: C:\UnrealEngine\UE_5.2\Engine\Binaries\Win64\UnrealEditor.exe D:\Workspace\PuzzlePlatform\PuzzlePlatform.uproject -game -log
I ran it.

This should work. Does the log indicate steam is being used for the OSS?

What kind of log is this? Can you give me an example?

And while manipulating the settings, I discovered the phenomenon below.

SessionSearch->QuerySettings.Set(SEARCH_PRESENCE, false, EOnlineComparisonOp::Equals);

I set the middle bool value to false and started searching. However, I only hosted one, but two different lobbies appear on the screen. And when I connect, the character is falling on a black screen and a connection failure log appears.

After setting it to false, I want to know whether the information that appears in the lobby is the session I created. Is there a way to find out the session ID I created?

When you run with -log, a console pops up as Unreal launches. The log is in there. It’s similar to running in the editor. If you add -windowed as well, it makes it easier to see.

Search oss in host logs

Line 723: [2023.10.18-15.44.41:887][280]LogOnlineSession: Verbose: OSS: dumping NamedSession:
	Line 724: [2023.10.18-15.44.41:887][280]LogOnlineSession: Verbose: OSS:   SessionName: lsh7fish Session Game
	Line 725: [2023.10.18-15.44.41:889][280]LogOnlineSession: Verbose: OSS:   HostingPlayerNum: 0
	Line 726: [2023.10.18-15.44.41:890][280]LogOnlineSession: Verbose: OSS:   SessionState: Pending
	Line 727: [2023.10.18-15.44.41:891][280]LogOnlineSession: Verbose: OSS:   RegisteredPlayers:
	Line 728: [2023.10.18-15.44.41:891][280]LogOnlineSession: Verbose: OSS:       0 registered players
	Line 729: [2023.10.18-15.44.41:892][280]LogOnlineSession: Verbose: OSS: dumping Session:
	Line 730: [2023.10.18-15.44.41:894][280]LogOnlineSession: Verbose: OSS:   OwningPlayerName: lsh7fish
	Line 731: [2023.10.18-15.44.41:895][280]LogOnlineSession: Verbose: OSS:   OwningPlayerId: lsh7fish [0x110000106FF207A]
	Line 732: [2023.10.18-15.44.41:895][280]LogOnlineSession: Verbose: OSS:   NumOpenPrivateConnections: 0
	Line 733: [2023.10.18-15.44.41:896][280]LogOnlineSession: Verbose: OSS:   NumOpenPublicConnections: 1
	Line 734: [2023.10.18-15.44.41:896][280]LogOnlineSession: Verbose: OSS:   SessionInfo: HostIP: INVALID SteamP2P: 76561198077649018:7777 Type: Lobby session SessionId: Lobby[0x1860000832B7066]
	Line 735: [2023.10.18-15.44.41:897][280]LogOnlineSession: Verbose: OSS: dumping SessionSettings:
	Line 736: [2023.10.18-15.44.41:898][280]LogOnlineSession: Verbose: OSS:   NumPublicConnections: 2
	Line 737: [2023.10.18-15.44.41:898][280]LogOnlineSession: Verbose: OSS:   NumPrivateConnections: 0
	Line 738: [2023.10.18-15.44.41:899][280]LogOnlineSession: Verbose: OSS:   bIsLanMatch: false
	Line 739: [2023.10.18-15.44.41:899][280]LogOnlineSession: Verbose: OSS:   bIsDedicated: false
	Line 740: [2023.10.18-15.44.41:900][280]LogOnlineSession: Verbose: OSS:   bUsesStats: false
	Line 741: [2023.10.18-15.44.41:900][280]LogOnlineSession: Verbose: OSS:   bShouldAdvertise: true
	Line 742: [2023.10.18-15.44.41:901][280]LogOnlineSession: Verbose: OSS:   bAllowJoinInProgress: false
	Line 743: [2023.10.18-15.44.41:901][280]LogOnlineSession: Verbose: OSS:   bAllowInvites: false
	Line 744: [2023.10.18-15.44.41:902][280]LogOnlineSession: Verbose: OSS:   bUsesPresence: true
	Line 745: [2023.10.18-15.44.41:903][280]LogOnlineSession: Verbose: OSS:   bAllowJoinViaPresence: true
	Line 746: [2023.10.18-15.44.41:903][280]LogOnlineSession: Verbose: OSS:   bAllowJoinViaPresenceFriendsOnly: false
	Line 747: [2023.10.18-15.44.41:904][280]LogOnlineSession: Verbose: OSS:   BuildUniqueId: 0x00000000
	Line 748: [2023.10.18-15.44.41:904][280]LogOnlineSession: Verbose: OSS:   Settings:

Search steam in host logs

	Line 677: [2023.10.18-15.43.48:921][  0]LogTemp: Warning: Found online subsystem STEAM
	Line 734: [2023.10.18-15.44.41:896][280]LogOnlineSession: Verbose: OSS:   SessionInfo: HostIP: INVALID SteamP2P: 76561198077649018:7777 Type: Lobby session SessionId: Lobby[0x1860000832B7066]
	Line 776: [2023.10.18-15.44.42:062][280]LogNet: Display: SteamNetDriver_0 bound to port 7777
	Line 778: [2023.10.18-15.44.42:063][280]LogNet: GameNetDriver SteamNetDriver_0 IpNetDriver listening on port 7777
	Line 785: [2023.10.18-15.44.42:068][280]LogOnlineIdentity: STEAM: Obtained steam authticket
	Line 785: [2023.10.18-15.44.42:068][280]LogOnlineIdentity: STEAM: Obtained steam authticket

Search steam in join logs

찾기 "steam" (1 개 파일을 검색하여 1 개 파일에서 47 개 일치)
  C:\Users\lsh7f\Desktop\질문 로그\join log.txt (47 일치)
	Line 676: [2023.10.18-15.43.48:916][  0]LogTemp: Warning: Found online subsystem STEAM
	Line 722: [2023.10.18-15.45.02:352][501]LogOnlineSession: Warning: STEAM: Server response IP:217.23.12.128
	Line 723: [2023.10.18-15.45.02:432][509]LogOnlineSession: Warning: STEAM: Server response IP:3.79.94.153
	Line 724: [2023.10.18-15.45.02:634][529]LogOnlineSession: Warning: STEAM: Server response IP:5.42.217.88
	Line 725: [2023.10.18-15.45.02:895][555]LogOnlineSession: Warning: STEAM: Rules response CONMETHOD P2P
	Line 726: [2023.10.18-15.45.02:897][555]LogOnlineSession: Warning: STEAM: Rules response OWNINGID 90177107157324807
	Line 727: [2023.10.18-15.45.02:897][555]LogOnlineSession: Warning: STEAM: Rules response OWNINGNAME 90177107157324807
	Line 728: [2023.10.18-15.45.02:898][555]LogOnlineSession: Warning: STEAM: Rules response P2PADDR 90177107157324807
	Line 729: [2023.10.18-15.45.02:899][556]LogOnlineSession: Warning: STEAM: Rules response P2PPORT 7777
	Line 730: [2023.10.18-15.45.02:899][556]LogOnlineSession: Warning: STEAM: Rules response SESSIONFLAGS 939
	Line 731: [2023.10.18-15.45.02:900][556]LogOnlineSession: Warning: STEAM: Rules refresh complete
	Line 732: [2023.10.18-15.45.02:976][563]LogOnlineSession: Warning: STEAM: Rules response CONMETHOD P2P
	Line 733: [2023.10.18-15.45.02:977][564]LogOnlineSession: Warning: STEAM: Rules response OWNINGID 90176709172066325
	Line 734: [2023.10.18-15.45.02:978][564]LogOnlineSession: Warning: STEAM: Rules response OWNINGNAME 90176709172066325
	Line 735: [2023.10.18-15.45.02:979][564]LogOnlineSession: Warning: STEAM: Rules response P2PADDR 90176709172066325
	Line 736: [2023.10.18-15.45.02:979][564]LogOnlineSession: Warning: STEAM: Rules response P2PPORT 7777
	Line 737: [2023.10.18-15.45.02:981][564]LogOnlineSession: Warning: STEAM: Rules response ServerMap_s IslandMap1
	Line 738: [2023.10.18-15.45.02:982][564]LogOnlineSession: Warning: STEAM: Rules response ServerName_s Survival Game Server 99875
	Line 739: [2023.10.18-15.45.02:983][564]LogOnlineSession: Warning: STEAM: Rules response SESSIONFLAGS 683
	Line 740: [2023.10.18-15.45.02:983][564]LogOnlineSession: Warning: STEAM: Rules refresh complete
	Line 741: [2023.10.18-15.45.03:519][618]LogOnlineSession: Warning: STEAM: Rules response CONMETHOD P2P
	Line 742: [2023.10.18-15.45.03:522][618]LogOnlineSession: Warning: STEAM: Rules response OWNINGID 90177241835077633
	Line 743: [2023.10.18-15.45.03:523][618]LogOnlineSession: Warning: STEAM: Rules response OWNINGNAME 90177241835077633
	Line 744: [2023.10.18-15.45.03:523][619]LogOnlineSession: Warning: STEAM: Rules response P2PADDR 90177241835077633
	Line 745: [2023.10.18-15.45.03:524][619]LogOnlineSession: Warning: STEAM: Rules response P2PPORT 7777
	Line 746: [2023.10.18-15.45.03:525][619]LogOnlineSession: Warning: STEAM: Rules response ServerMap_s IslandMap
	Line 747: [2023.10.18-15.45.03:525][619]LogOnlineSession: Warning: STEAM: Rules response ServerName_s LostLand Beta
	Line 748: [2023.10.18-15.45.03:526][619]LogOnlineSession: Warning: STEAM: Rules response SESSIONFLAGS 683
	Line 749: [2023.10.18-15.45.03:527][619]LogOnlineSession: Warning: STEAM: Rules refresh complete
	Line 755: [2023.10.18-15.45.12:487][526]LogOnline: Warning: STEAM: AUTH: JoinInternetSession is calling the depricated AdvertiseGame call
	Line 756: [2023.10.18-15.45.12:488][526]LogOnlineSession: STEAM: Using P2P Data for Connection Serialization
	Line 757: [2023.10.18-15.45.12:488][526]LogNet: Browse: steam.90177241835077633/Game/MenuSystem/MainMenu
	Line 758: [2023.10.18-15.45.12:489][526]LogNet: Display: SteamNetDriver_0 bound to port 7777
	Line 759: [2023.10.18-15.45.12:490][526]LogNet: SteamNetConnection_0 setting maximum channels to: 32767
	Line 762: [2023.10.18-15.45.12:504][526]LogOnline: STEAM: Adding user 90177241835077633:7777 from RegisterConnection
	Line 770: [2023.10.18-15.45.14:820][762]LogNet: UPendingNetGame::SendInitialJoin: Sending hello. [UNetConnection] RemoteAddr: 90177241835077633:7777, Name: SteamNetConnection_0, Driver: PendingNetDriver SteamNetDriver_0, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID
	Line 770: [2023.10.18-15.45.14:820][762]LogNet: UPendingNetGame::SendInitialJoin: Sending hello. [UNetConnection] RemoteAddr: 90177241835077633:7777, Name: SteamNetConnection_0, Driver: PendingNetDriver SteamNetDriver_0, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID
	Line 772: [2023.10.18-15.45.15:225][803]LogNet: Error: UEngine::BroadcastNetworkFailure: FailureType = OutdatedClient, ErrorString = The match you are trying to join is running an incompatible version of the game.  Please try upgrading your game version., Driver = PendingNetDriver SteamNetDriver_0
	Line 778: [2023.10.18-15.45.15:228][804]LogNet: UChannel::CleanUp: ChIndex == 0. Closing connection. [UChannel] ChIndex: 0, Closing: 0 [UNetConnection] RemoteAddr: 90177241835077633:7777, Name: SteamNetConnection_0, Driver: PendingNetDriver SteamNetDriver_0, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID
	Line 778: [2023.10.18-15.45.15:228][804]LogNet: UChannel::CleanUp: ChIndex == 0. Closing connection. [UChannel] ChIndex: 0, Closing: 0 [UNetConnection] RemoteAddr: 90177241835077633:7777, Name: SteamNetConnection_0, Driver: PendingNetDriver SteamNetDriver_0, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID
	Line 779: [2023.10.18-15.45.15:229][804]LogNet: UNetConnection::Close: [UNetConnection] RemoteAddr: 90177241835077633:7777, Name: SteamNetConnection_0, Driver: PendingNetDriver SteamNetDriver_0, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID, Channels: 2, Time: 2023.10.18-15.45.15
	Line 779: [2023.10.18-15.45.15:229][804]LogNet: UNetConnection::Close: [UNetConnection] RemoteAddr: 90177241835077633:7777, Name: SteamNetConnection_0, Driver: PendingNetDriver SteamNetDriver_0, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID, Channels: 2, Time: 2023.10.18-15.45.15
	Line 782: [2023.10.18-15.45.15:233][805]LogNet: UChannel::Close: Sending CloseBunch. ChIndex == 0. Name: [UChannel] ChIndex: 0, Closing: 0 [UNetConnection] RemoteAddr: 90177241835077633:7777, Name: SteamNetConnection_0, Driver: PendingNetDriver SteamNetDriver_0, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID
	Line 782: [2023.10.18-15.45.15:233][805]LogNet: UChannel::Close: Sending CloseBunch. ChIndex == 0. Name: [UChannel] ChIndex: 0, Closing: 0 [UNetConnection] RemoteAddr: 90177241835077633:7777, Name: SteamNetConnection_0, Driver: PendingNetDriver SteamNetDriver_0, IsServer: NO, PC: NULL, Owner: NULL, UniqueId: INVALID
	Line 783: [2023.10.18-15.45.15:234][805]LogNet: Error: UEngine::BroadcastNetworkFailure: FailureType = PendingConnectionFailure, ErrorString = The match you are trying to join is running an incompatible version of the game.  Please try upgrading your game version., Driver = PendingNetDriver SteamNetDriver_0
	Line 784: [2023.10.18-15.45.15:235][805]LogNet: DestroyNamedNetDriver SteamNetDriver_0 [PendingNetDriver]
	Line 785: [2023.10.18-15.45.15:235][805]LogExit: PendingNetDriver SteamNetDriver_0 shut down
찾기 "oss" (1 개 파일을 검색하여 0 개 파일에서 0 개 일치)
찾기 "steam" (1 개 파일을 검색하여 1 개 파일에서 6 개 일치)
  new 1 (6 일치)
	Line 677: [2023.10.18-15.18.28:868][  0]LogTemp: Warning: Found online subsystem STEAM
	Line 734: [2023.10.18-15.18.32:149][259]LogOnlineSession: Verbose: OSS:   SessionInfo: HostIP: INVALID SteamP2P: 76561198077649018:7777 Type: Lobby session SessionId: Lobby[0x186000082F152B1]
	Line 776: [2023.10.18-15.18.32:291][259]LogNet: Display: SteamNetDriver_0 bound to port 7777
	Line 778: [2023.10.18-15.18.32:292][259]LogNet: GameNetDriver SteamNetDriver_0 IpNetDriver listening on port 7777
	Line 785: [2023.10.18-15.18.32:297][259]LogOnlineIdentity: STEAM: Obtained steam authticket
	Line 785: [2023.10.18-15.18.32:297][259]LogOnlineIdentity: STEAM: Obtained steam authticket

As I commented above, I entered one of the two lobbies and a log was recorded in the host server log.
Looks like there was a log
SessionSearch->QuerySettings.Set(SEARCH_PRESENCE, false, EOnlineComparisonOp::Equals);
It seems to be working.

But even if I do that, I get the following error.

[2023.10.18-15.37.16:791][521]LogNet: Error: Server is incompatible with the local version of the game: RemoteNetworkVersion=3306688206, RemoteNetworkFeatures=LegacyReplication vs LocalNetworkVersion=1366367301, LocalNetworkFeatures=LegacyReplication
[2023.10.18-15.37.16:793][522]LogNet: Error: UEngine::BroadcastNetworkFailure: FailureType = OutdatedClient, ErrorString = The match you are trying to join is running an incompatible version of the game. Please try upgrading your game version., Driver = PendingNetDriver SteamNetDriver_0
[2023.10.18-15.37.16:794][522]LogNet: Warning: Network Failure: PendingNetDriver[OutdatedClient]: The match you are trying to join is running an incompatible version of the game. Please try upgrading your game version.
[2023.10.18-15.37.16:794][522]LogNet: NetworkFailure: OutdatedClient, Error: ‘The match you are trying to join is running an incompatible version of the game. Please try upgrading your game version.’
[2023.10.18-15.37.16:797][522]LogNet: Error: UEngine::BroadcastNetworkFailure: FailureType = PendingConnectionFailure, ErrorString = The match you are trying to join is running an incompatible version of the game. Please try upgrading your game version., Driver = PendingNetDriver SteamNetDriver_0

It seems that the server and client versions are different. How can I set the server and client versions? And what value should I set it to?

The best way is to package the game and use that on both devices. This is great progress and is the most problematic part of testing with Steam.

I just realised there’s a few bits you should be aware of.
first, you need to ensure in the project settings that all maps are included in the build - as default they are not in UE5, UE4 did include them as default.

next, when launching the build, you can also still use -log and -windowed and this helps debug

You must also have 2 separate steam accounts.

thank you
Following your advice, I packaged it and tested it on two PCs using different Steam accounts, and it worked normally.

1 Like

I’m glad you are sorted. It is the best way to be sure both computers are using the same version.

Privacy & Terms