# Find Session is finding a game that doesn't exist

**URL:** <https://forums.unrealengine.com/t/find-session-is-finding-a-game-that-doesnt-exist/1252468>\
**Category:** Multiplayer & Networking\
**Tags:** sessions, unreal-engine, Multiplayer, question\
**Created:** [August 6, 2023, 12:17pm UTC](https://forums.unrealengine.com/t/find-session-is-finding-a-game-that-doesnt-exist/1252468 "2023-08-06T12:17:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lowenfas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lowenfas](https://forums.unrealengine.com/u/Lowenfas)\
**Post date:** [August 6, 2023, 12:17pm UTC](https://forums.unrealengine.com/t/find-session-is-finding-a-game-that-doesnt-exist/1252468/1 "2023-08-06T12:17:26Z")

</div>

I’m brand spanking new to the multiplayer aspect of unreal and have watched numerous tutorials and got one working, until I tried to edit it slightly to make it more suitable to my games needs.  
How I want it to work is you click play game and it searches for games and if it doesn’t find one it creates a new lobby, if it does find one then it joins the existing lobby. The problem is, while I’m testing this, it keeps telling me that it finds a lobby with the server name “” and a ping of 9999. Whenever it tries to Join Session it fails immediately.

This code was working before until I made a slight change, and now even when I undo my change it keeps finding a game that doesn’t exist. Also this code is located in my GameInstance, is that an issue?

 ![Screen Shot 2023-08-06 at 8.09.57 AM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/3/4/1343de6a90e4604015a58ce598d830ac0f0d5da6.png)

---

<div class="post-metadata">

**Author:** ![Lowenfas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lowenfas](https://forums.unrealengine.com/u/Lowenfas)\
**Post date:** [August 6, 2023, 12:20pm UTC](https://forums.unrealengine.com/t/find-session-is-finding-a-game-that-doesnt-exist/1252468/2 "2023-08-06T12:20:31Z")

</div>

I even tried to filter out the sessions within the For Each Loop to filter out any sessions with a Server Name = “” or a ping of 9999, but it still somehow finds the same session with no server name and a ping of 9999.

---

<div class="post-metadata">

**Author:** ![Lowenfas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lowenfas](https://forums.unrealengine.com/u/Lowenfas)\
**Post date:** [August 6, 2023, 5:24pm UTC](https://forums.unrealengine.com/t/find-session-is-finding-a-game-that-doesnt-exist/1252468/3 "2023-08-06T17:24:55Z")

</div>

Turns out my issue was that when there were no sessions to be found the FoundSessions array would be empty, BUT, the For Each loop would still run and immediately which would then read my print string saying ‘Session found’ although non were ever actually found.

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [September 5, 2023, 5:25pm UTC](https://forums.unrealengine.com/t/find-session-is-finding-a-game-that-doesnt-exist/1252468/4 "2023-09-05T17:25:53Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
