# Online Subsystem Session Search Always Empty

**URL:** <https://forums.unrealengine.com/t/online-subsystem-session-search-always-empty/295692>\
**Category:** Platform & Builds\
**Tags:** online-subsystem, Steam, unreal-engine, question, CPP\
**Created:** [October 9, 2014, 10:38am UTC](https://forums.unrealengine.com/t/online-subsystem-session-search-always-empty/295692 "2014-10-09T10:38:12Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_037c12af](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_037c12af](https://forums.unrealengine.com/u/anonymous_user_037c12af)\
**Post date:** [October 9, 2014, 10:38am UTC](https://forums.unrealengine.com/t/online-subsystem-session-search-always-empty/295692/1 "2014-10-09T10:38:12Z")

</div>

I’m trying to set up a game browser using the steam online subsystem and I’m running into problems. Whenever I run a session search the result set is always completely empty.

Here is my code for creating sessions:

```
 if (OnlineSystem)
	{
		FOnlineSessionSettings CurrentSettings;
		CurrentSettings.bIsLANMatch = false;
		CurrentSettings.bIsDedicated = false;
		CurrentSettings.bAllowJoinInProgress = true;
		CurrentSettings.bAllowInvites = true;
		CurrentSettings.bShouldAdvertise = true;
		CurrentSettings.bUsesPresence = true;
		CurrentSettings.NumPrivateConnections = 100;
		CurrentSettings.NumPublicConnections = 100;

		CurrentSettings.bUsesStats = true;
		IOnlineSessionPtr Session = OnlineSystem->GetSessionInterface();
		if (Session.IsValid())
		{
			
			Session->AddOnCreateSessionCompleteDelegate(OnCreateSessionCompleteDelegate);
			return Session->CreateSession(1, serverName, CurrentSettings);
		}
	}

	return false;

```

Here is my code for searching sessions:

```
if (OnlineSystem)
	{
		IOnlineSessionPtr Session = OnlineSystem->GetSessionInterface();
		if (Session.IsValid())
		{
			SearchSettings = MakeShareable(new FOnlineSessionSearch());
			SearchSettings->bIsLanQuery = false;
			SearchSettings->MaxSearchResults = 100;
			SearchSettings->PingBucketSize = 200;
			TSharedRef<FOnlineSessionSearch> SearchSettingsRef = SearchSettings.ToSharedRef();
			Session->AddOnFindSessionsCompleteDelegate(OnFindSessionCompleteDelegate);
			return Session->FindSessions(0, SearchSettingsRef);
		}
	}
	return false;

```

Any help would be appreciated. I can provide run-time logs if that would help

---

<div class="post-metadata">

**Author:** ![Rama](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rama/32/882413_2.png) [@Rama](https://forums.unrealengine.com/u/Rama)\
**Post date:** [October 9, 2014, 1:02pm UTC](https://forums.unrealengine.com/t/online-subsystem-session-search-always-empty/295692/2 "2014-10-09T13:02:52Z")

</div>

#Steam

You need an actual online subsystem that has servers, the default subsystem is not actually a real service that has hosting capacities

If you use steam you need your own steam app id.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_037c12af](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_037c12af](https://forums.unrealengine.com/u/anonymous_user_037c12af)\
**Post date:** [October 9, 2014, 1:15pm UTC](https://forums.unrealengine.com/t/online-subsystem-session-search-always-empty/295692/3 "2014-10-09T13:15:30Z")

</div>

Thanks for the reply! I am using the steam subsystem and have an app id and as far as I can tell I am successfully making a session with the app id. Heres what I believe to be the relevant part of the log:

![17451-sessionlog.png]()

---

<div class="post-metadata">

**Author:** ![Neur0t1c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Neur0t1c](https://forums.unrealengine.com/u/Neur0t1c)\
**Post date:** [October 24, 2014, 12:09am UTC](https://forums.unrealengine.com/t/online-subsystem-session-search-always-empty/295692/4 "2014-10-24T00:09:02Z")

</div>

Did you ever get it working? I’m stuck in the same problem.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fc4c82b6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fc4c82b6](https://forums.unrealengine.com/u/anonymous_user_fc4c82b6)\
**Post date:** [November 20, 2014, 12:46am UTC](https://forums.unrealengine.com/t/online-subsystem-session-search-always-empty/295692/5 "2014-11-20T00:46:05Z")

</div>

So … isn’t it possible to use the OnlineSubsystemNull for hosting in LAN? Did I misunderstand that? I thought the OnlineSubsystemNull provides basic functionality for LAN games. Even though I am not able to find any games (it says successful hosts/finds, but the SearchResults.Num() is always 0 ☹ )

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a8366a311](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a8366a311](https://forums.unrealengine.com/u/anonymous_user_a8366a311)\
**Post date:** [August 29, 2015, 10:57pm UTC](https://forums.unrealengine.com/t/online-subsystem-session-search-always-empty/295692/6 "2015-08-29T22:57:46Z")

</div>

Hello guys, I’m stuck in the same problem my SearchResults.Num() is always empty. before call my method to find sessions, i create a session successful but after that i call my FindSessions method and SearchResults is empty. Anyone can help me with this problem, please.

---

<div class="post-metadata">

**Author:** ![Anonymous\_dd56a58405288d59cf93311503aeeb3e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_dd56a58405288d59cf93311503aeeb3e](https://forums.unrealengine.com/u/Anonymous_dd56a58405288d59cf93311503aeeb3e)\
**Post date:** [July 8, 2016, 1:34am UTC](https://forums.unrealengine.com/t/online-subsystem-session-search-always-empty/295692/7 "2016-07-08T01:34:45Z")

</div>

I also found thisproblem, like, findsession succesful, but searchresult’s Num away 0. do you know why ? help me , thank you.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9f67398f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9f67398f](https://forums.unrealengine.com/u/anonymous_user_9f67398f)\
**Post date:** [November 25, 2016, 7:24pm UTC](https://forums.unrealengine.com/t/online-subsystem-session-search-always-empty/295692/8 "2016-11-25T19:24:39Z")

</div>

Same problem here. LAN works fine, but after setting LAN to false and bUsesPresence to false (to create an internet session), the results are always empty.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_9f67398f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_9f67398f](https://forums.unrealengine.com/u/anonymous_user_9f67398f)\
**Post date:** [November 29, 2016, 1:51am UTC](https://forums.unrealengine.com/t/online-subsystem-session-search-always-empty/295692/9 "2016-11-29T01:51:43Z")

</div>

Tuns out bUsesPresence=false creates an internet session which is used for dedicated servers. It will callback on one of the [steam game server ports](https://support.steampowered.com/kb_article.php?ref=8571-GLVN-8711) which was being blocked by the router, resulting in a ‘steam: failed to respond IP’. The solution was to use bUsesPresence=true to create a steam lobby. -debug and [verbose logging](https://answers.unrealengine.com/questions/78413/ue-log-not-changing-logging-level.html) were a major help in trying to figure out the steam subsystem.

---

<div class="post-metadata">

**Author:** ![Anonymous\_dd56a58405288d59cf93311503aeeb3e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_dd56a58405288d59cf93311503aeeb3e](https://forums.unrealengine.com/u/Anonymous_dd56a58405288d59cf93311503aeeb3e)\
**Post date:** [November 29, 2016, 2:46am UTC](https://forums.unrealengine.com/t/online-subsystem-session-search-always-empty/295692/10 "2016-11-29T02:46:53Z")

</div>

I issue this problem with run PIE. after build a .exe no this problem!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_a23a32ad](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_a23a32ad](https://forums.unrealengine.com/u/anonymous_user_a23a32ad)\
**Post date:** [July 6, 2017, 4:54am UTC](https://forums.unrealengine.com/t/online-subsystem-session-search-always-empty/295692/11 "2017-07-06T04:54:49Z")

</div>

I am having the same issue. I cannot find sessions via steam. Can somebody please help me? I am using UE4.15. I have my appid. My game is greenlit on steam. I am using the advanced session plug-in. Finding session over router is easy but cannot find session when hosted at a different location.

---

<div class="post-metadata">

**Author:** ![SCARBLAZ1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SCARBLAZ1](https://forums.unrealengine.com/u/SCARBLAZ1)\
**Post date:** [August 24, 2023, 8:27am UTC](https://forums.unrealengine.com/t/online-subsystem-session-search-always-empty/295692/12 "2023-08-24T08:27:35Z")

</div>

> [@anonymous\_user\_9f67398f](#):
>
> bUsesPresence

I am having the same issue while using AppID: 480, i am testing in 2 different laptops and 2 different steam accounts.

`bUsesPresence = true` is already set to true.  
able to create the online session but unable to find that session from other laptop.  
_tried with max search results = 100000_  
but it search result is always empty.

---

<div class="post-metadata">

**Author:** ![KKJMJ9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KKJMJ9](https://forums.unrealengine.com/u/KKJMJ9)\
**Post date:** [January 30, 2025, 6:55am UTC](https://forums.unrealengine.com/t/online-subsystem-session-search-always-empty/295692/13 "2025-01-30T06:55:14Z")

</div>

Did someone fix it to work on LAN?
