EOSPlus cannot find sessions even though they show in the portal

We tested using the steam OSS and everything worked well. Switched over to EOS/EOSPlus and we cannot find our created sessions even though they appear in the portal. Other things work to like reading out the friends of both steam and epic friends and such. Heres the DefaultEngine.ini

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

[/Script/OnlineSubsystemEOS.EOSSettings]
CacheDir=CacheDir
DefaultArtifactName=Artifact
TickBudgetInMilliseconds=0
bEnableOverlay=False
bEnableSocialOverlay=False
bShouldEnforceBeingLaunchedByEGS=False
TitleStorageReadChunkLength=0
Yes these are filled out below correctly
+Artifacts=(ArtifactName="Artifact",ClientId="",ClientSecret="",ProductId="",SandboxId="",DeploymentId="",EncryptionKey="")
bUseEAS=True
bUseEOSConnect=True
bMirrorStatsToEOS=False
bMirrorAchievementsToEOS=False
bUseEOSSessions=True
bMirrorPresenceToEAS=False

[/Script/OnlineSubsystemEOS.NetDriverEOS]
bIsUsingP2PSockets=true
NetConnectionClassName="OnlineSubsystemEOS.NetConnectionEOS"

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

[OnlineSubsystemSteam]
bEnabled=true
SteamDevAppId=set to the steam id
bUseSteamNetworking=false
GameServerQueryPort=27015

[OnlineSubsystemEOS]
bEnabled=true

[OnlineSubsystemEOSPlus]
bEnabled=true

[OnlineSubsystem]
DefaultPlatformService=EOSPlus
NativePlatformService=Steam

[/Script/OnlineSubsystemUtils.OnlineEngineInterfaceImpl]
+CompatibleUniqueNetIdTypes=EOS
+CompatibleUniqueNetIdTypes=EOSPlus

Create Sessions

FOnlineSessionSettings SessionSettings;
SessionSettings.bIsLANMatch = false;
SessionSettings.NumPublicConnections = 5;
SessionSettings.bShouldAdvertise = true;
SessionSettings.bUsesPresence = true;
SessionSettings.bUseLobbiesIfAvailable = true;
SessionSettings.Set(SEARCH_KEYWORDS, FString("Testing"), EOnlineDataAdvertisementType::ViaOnlineService);
				
SessionPtr->OnCreateSessionCompleteDelegates.AddUObject(this, &UEOSGameInstance::OnCreateSessionComplete);
SessionPtr->CreateSession(0, TestSessionName, SessionSettings);

On Create Sessions Complete

SessionPtr->ClearOnCreateSessionCompleteDelegates(this);
GetWorld()->ServerTravel(FString("ThirdPersonExampleMap?listen"), false);

Find Sessions

SearchSettings = MakeShareable(new FOnlineSessionSearch());
SearchSettings->MaxSearchResults = 100;
			
SessionPtr->OnFindSessionsCompleteDelegates.AddUObject(this, &UEOSGameInstance::OnFindSessionsComplete);
SessionPtr->FindSessions(0, SearchSettings.ToSharedRef());

On Find Sessions Complete which shows 0 for servers found

UE_LOG(LogTemp, Warning, TEXT("Found Server Count: %d"), SearchSettings->SearchResults.Num());
		if (GetOnlineSubsystem())
		{
			if (IOnlineSessionPtr SessionPtr = OnlineSubsystem->GetSessionInterface())
			{
				SessionPtr->ClearOnFindSessionsCompleteDelegates(this);
				if (SearchSettings->SearchResults.Num())
				{
					FOnlineSessionSearchResult SearchResult = SearchSettings->SearchResults[0];
					UE_LOG(LogTemp, Warning, TEXT("Joining Server with Host: %s"), *SearchResult.Session.OwningUserName);
					SessionPtr->OnJoinSessionCompleteDelegates.AddUObject(this, &UEOSGameInstance::OnJoinSessionComplete);
					SessionPtr->JoinSession(0, TestSessionName, SearchResult);
				}
			}
		}
1 Like

Same Problem, if did you solve the problem please let me know

1 Like

Hello, I know some time has passed but if you’re searching for Lobbies you need to add check to Query:
SessionSearch->QuerySettings.Set(SEARCH_LOBBIES, true, EOnlineComparisonOp::Type::Equals);

Maybe this will solve your problem :slight_smile:

1 Like

Currently facing this issue, works with LAN matches but not online Lobbies. They show up in the portal but results return 0.