# Unreal 4.27.2 Steam SDK 1.51 Can't Find my own session #4.27.2 #Steam #Sessions

**URL:** <https://forums.unrealengine.com/t/unreal-4-27-2-steam-sdk-1-51-cant-find-my-own-session-4-27-2-steam-sessions/272942>\
**Category:** Multiplayer & Networking\
**Tags:** unreal-engine, UE4-27, question\
**Created:** [January 16, 2022, 11:36pm UTC](https://forums.unrealengine.com/t/unreal-4-27-2-steam-sdk-1-51-cant-find-my-own-session-4-27-2-steam-sessions/272942 "2022-01-16T23:36:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![DokySamejima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DokySamejima](https://forums.unrealengine.com/u/DokySamejima)\
**Post date:** [January 16, 2022, 11:36pm UTC](https://forums.unrealengine.com/t/unreal-4-27-2-steam-sdk-1-51-cant-find-my-own-session-4-27-2-steam-sessions/272942/1 "2022-01-16T23:36:48Z")

</div>

Hello. Im using Unreal 4.27.2 and i have created a online game. I been testing it with LAN and no problem, but now that i want to launch it on steam, when i follow all the steps of how to implement the steam online subsystem. I got the overylay and i can create and search for sessions, i find more sessions on the default id 480 but i cant find my own session.

1. I have activated the online subsystem plugin and online subsystem steam.
2. I added everything in my defaultEngine.ini
3. added the line to mygame.build.cs
4. Have tried adding the files to thirdparty/steamworks/steamv151 with the sdk downloaded from steam and also tried with the one the unreal program give you by default.
5. I have steam sockets plugin disabled.

I tried with 2 differents PC with 2 differents steam accounts. Both steam are set in the same country.  
After nothing worked i had tried with differents version of SDK, differents version of the ini (the version gived by unreal in the steam onlinesubsystem documentation as well of corse)

I already researched all over internet and tried many differents options like making a full rebuild, shipping build, changing the ports, and many more but nothing works.

I also tried deactivated the online subsystem null so i can only create session when im logged to steam to be sure that the session is on steam. But still nothing. I was just about to launch my game and i been triying to solve this for a week now. Please Please HELP.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/e/0/e0299c0791524f1d2423f659877f52eb9d8a5989.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/f/4f389c57ace24be133653f59a925cb9078d240f0.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/c/8/c88c702df73dc870ff376cd2b38a16643508cc3b.jpeg)  
(this is how i find sessions)  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/4/b/4b8b7db15ae5fc0dfb3f0f9353dd1f508f3fbf9d.png)

(this is how i create and join sessions this is made in the my custom gameinstance)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/8/6/86638e0ee622eabee00a432a05e678ce97b761c7.jpeg)

---

<div class="post-metadata">

**Author:** ![DokySamejima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DokySamejima](https://forums.unrealengine.com/u/DokySamejima)\
**Post date:** [January 21, 2022, 3:35pm UTC](https://forums.unrealengine.com/t/unreal-4-27-2-steam-sdk-1-51-cant-find-my-own-session-4-27-2-steam-sessions/272942/3 "2022-01-21T15:35:16Z")

</div>

Thank you for triying to help me in advice. I changed to false the bInitServerOnClient and then compiled the game on shipping. Now i also get the steam interface and i can search for sessions. But now when i try to host a session i can’t do it. I added the game to the steam library as a non-steam game and when i play i see Spacewar as expected but i cant create a session now because it give me the onFailure exit on the create session node.

---

<div class="post-metadata">

**Author:** ![STRiFE.x](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/strife.x/32/969826_2.png) [@STRiFE.x](https://forums.unrealengine.com/u/STRiFE.x)\
**Post date:** [January 23, 2022, 9:08am UTC](https://forums.unrealengine.com/t/unreal-4-27-2-steam-sdk-1-51-cant-find-my-own-session-4-27-2-steam-sessions/272942/4 "2022-01-23T09:08:01Z")

</div>

Check the game’s logs and see what the issue is. Using the -log command line argument when starting the game’s exe is pretty much necessary when dealing with online stuff. You can make a Shortcut for the exe and add it there, or alternatively, I use a .bat as a launcher that runs my exe with a set of parameters.

```auto
@echo off
:: move into the batch script's directory
cd "%~dp0"
:: start the executable
start YourGame.exe -ResX=1280 -ResY=720 -WINDOWED -LOG

```

---

<div class="post-metadata">

**Author:** ![DokySamejima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DokySamejima](https://forums.unrealengine.com/u/DokySamejima)\
**Post date:** [January 23, 2022, 2:57pm UTC](https://forums.unrealengine.com/t/unreal-4-27-2-steam-sdk-1-51-cant-find-my-own-session-4-27-2-steam-sessions/272942/5 "2022-01-23T14:57:32Z")

</div>

Thank you again for your answer STRiFE.X

I get this error in the log:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/b/f/bfa23322f3b640ae1f201ce4ab7fec30314aecca.png)

I readed on google something about changing some false-true lines on the OnlineSessionsSettings.h Now is like this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/7/176156eb4f125d7db75189f431ba78beb07c7874.png)

But still i get the same error on the log and cant create a session.

---

<div class="post-metadata">

**Author:** ![DokySamejima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DokySamejima](https://forums.unrealengine.com/u/DokySamejima)\
**Post date:** [January 25, 2022, 11:51pm UTC](https://forums.unrealengine.com/t/unreal-4-27-2-steam-sdk-1-51-cant-find-my-own-session-4-27-2-steam-sessions/272942/6 "2022-01-25T23:51:29Z")

</div>

I tried again with bInitServerOnCliente=true because that way i can at least create session to check the log, this is what i get but i still cant find my session:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/3X/d/4/d4bbed2fc6c2e09064be881a3db9bbcf398a232f.png)

---

<div class="post-metadata">

**Author:** ![DokySamejima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DokySamejima](https://forums.unrealengine.com/u/DokySamejima)\
**Post date:** [January 31, 2022, 3:57pm UTC](https://forums.unrealengine.com/t/unreal-4-27-2-steam-sdk-1-51-cant-find-my-own-session-4-27-2-steam-sessions/272942/7 "2022-01-31T15:57:19Z")

</div>

Still triying to find a solution to this. I re-created the online system in ue 4.26 and there it works fine i can create and find sessions on Steam without problem. But i cant change my whole project to 4.26 at the engine doesnt let me do it. Help please.

---

<div class="post-metadata">

**Author:** ![GRIMTEC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/grimtec/32/251054_2.png) [@GRIMTEC](https://forums.unrealengine.com/u/GRIMTEC)\
**Post date:** [January 31, 2022, 6:35pm UTC](https://forums.unrealengine.com/t/unreal-4-27-2-steam-sdk-1-51-cant-find-my-own-session-4-27-2-steam-sessions/272942/8 "2022-01-31T18:35:29Z")

</div>

Hello

there is a problem with Steam in 4.27 where you have to set _bUseLobbiesIfAvailable_ to true on the session settings, otherwise you will get the error that you have gotten (failed to initialize game server…). I have seen that you have changed that to true in _OnlineSessionSettings.h_ but you posting C++ code opened in Word doesn’t fill me with confidence that you know what you are doing, just changing the text in the file doesn’t do anything if you don’t recompile the module, I hope you are aware of that. If you are only using Blueprints I don’t think there is a way to fix this (maybe if you’d use the AdvancedSessions plugin).

---

<div class="post-metadata">

**Author:** ![Jaco001](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Jaco001](https://forums.unrealengine.com/u/Jaco001)\
**Post date:** [January 31, 2022, 7:55pm UTC](https://forums.unrealengine.com/t/unreal-4-27-2-steam-sdk-1-51-cant-find-my-own-session-4-27-2-steam-sessions/272942/9 "2022-01-31T19:55:22Z")

</div>

> [@DokySamejima](#):
>
> 4.27.2

It is from source or from launcher?

---

<div class="post-metadata">

**Author:** ![DokySamejima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DokySamejima](https://forums.unrealengine.com/u/DokySamejima)\
**Post date:** [January 31, 2022, 10:28pm UTC](https://forums.unrealengine.com/t/unreal-4-27-2-steam-sdk-1-51-cant-find-my-own-session-4-27-2-steam-sessions/272942/10 "2022-01-31T22:28:23Z")

</div>

Its from launcher a blueprint project.

---

<div class="post-metadata">

**Author:** ![DokySamejima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DokySamejima](https://forums.unrealengine.com/u/DokySamejima)\
**Post date:** [January 31, 2022, 10:29pm UTC](https://forums.unrealengine.com/t/unreal-4-27-2-steam-sdk-1-51-cant-find-my-own-session-4-27-2-steam-sessions/272942/11 "2022-01-31T22:29:13Z")

</div>

How can i recompile the module? i cant use advancedsessions plugin because its not ready yet for 4.27

---

<div class="post-metadata">

**Author:** ![GRIMTEC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/grimtec/32/251054_2.png) [@GRIMTEC](https://forums.unrealengine.com/u/GRIMTEC)\
**Post date:** [February 1, 2022, 7:31pm UTC](https://forums.unrealengine.com/t/unreal-4-27-2-steam-sdk-1-51-cant-find-my-own-session-4-27-2-steam-sessions/272942/12 "2022-02-01T19:31:37Z")

</div>

You would usually build the engine from source, but that would be a bit overkill for such a simple change. I would recommend to just make a custom GameInstance class in C++ to create your session. That would be the easiest solution.

---

<div class="post-metadata">

**Author:** ![DokySamejima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DokySamejima](https://forums.unrealengine.com/u/DokySamejima)\
**Post date:** [February 2, 2022, 2:21am UTC](https://forums.unrealengine.com/t/unreal-4-27-2-steam-sdk-1-51-cant-find-my-own-session-4-27-2-steam-sessions/272942/13 "2022-02-02T02:21:08Z")

</div>

So i have to create a c++ gameinstance inside the editor in the project? After that i have to configure the join sessions and create sessions in a c++ class? Can you please explain me a bit the process? Never did that before. Thank you, you are my last hope.

---

<div class="post-metadata">

**Author:** ![GRIMTEC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/grimtec/32/251054_2.png) [@GRIMTEC](https://forums.unrealengine.com/u/GRIMTEC)\
**Post date:** [February 2, 2022, 1:21pm UTC](https://forums.unrealengine.com/t/unreal-4-27-2-steam-sdk-1-51-cant-find-my-own-session-4-27-2-steam-sessions/272942/14 "2022-02-02T13:21:40Z")

</div>

what is your background? Do you know C++? Do you have an IDE/compiler like Visual Studio installed? I assume your project is already a C++ project because you have the Steam subsystem module included.

---

<div class="post-metadata">

**Author:** ![DokySamejima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DokySamejima](https://forums.unrealengine.com/u/DokySamejima)\
**Post date:** [February 2, 2022, 2:13pm UTC](https://forums.unrealengine.com/t/unreal-4-27-2-steam-sdk-1-51-cant-find-my-own-session-4-27-2-steam-sessions/272942/15 "2022-02-02T14:13:06Z")

</div>

I worked before with C Sharp in unity. I have visual studio installed yes and my project is also a c++ project but i dont have nothing writting in c++ yet.

---

<div class="post-metadata">

**Author:** ![GRIMTEC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/grimtec/32/251054_2.png) [@GRIMTEC](https://forums.unrealengine.com/u/GRIMTEC)\
**Post date:** [February 2, 2022, 2:51pm UTC](https://forums.unrealengine.com/t/unreal-4-27-2-steam-sdk-1-51-cant-find-my-own-session-4-27-2-steam-sessions/272942/16 "2022-02-02T14:51:30Z")

</div>

ok, let’s try something else first, especially since we don’t even know for what’s causing your issues in the first place. We will move the Steam subsystem plugin to the project level, that way you can modify the plugin without having to build the whole engine from source and maybe you’ll just have to add one line of C++ code to make it work:

1. In the directory where you have UE 4.27 installed, go to Engine\Plugins\Online\ and copy the OnlineSubsystemSteam folder to your project folder into Plugins\Online\ as well (you may have to create the plugins folder). So your folder structure should then be like “yourGame”\Plugins\Online\OnlineSubsystemSteam

2. Regenerate your Visual Studio solution (left-click on the .uproject file of your project and click “Generate Visual Studio project files”).

3. Open the Visual Studio solution, compile and start the editor. If you have done everything correctly and you open the Plugins dialog in the editor, you should now see the Steam subsystem as project plugin.

4. Close the editor again and modify `OnlineSessionInterfaceSteam.cpp` at line 238/239 so it looks like this:

```auto
/// Unique identifier of this build for compatibility
Session->SessionSettings.BuildUniqueId = GetBuildUniqueId();
Session->SessionSettings.bUseLobbiesIfAvailable = true; // <---- add this line

```

Make sure are actually modifying the file in your project’s plugin folder, not the one in the engine plugin folder.

1. Recompile again, maybe even compile all configurations just to make sure you are not somehow still using old dlls, and then do what you usually do to test Steam. Also make sure you test with the setup that previously gave you the “failed to initialize the game server with Steam” warning since that’s what this is supposed to fix.

Good luck!

---

<div class="post-metadata">

**Author:** ![DokySamejima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DokySamejima](https://forums.unrealengine.com/u/DokySamejima)\
**Post date:** [February 2, 2022, 4:17pm UTC](https://forums.unrealengine.com/t/unreal-4-27-2-steam-sdk-1-51-cant-find-my-own-session-4-27-2-steam-sessions/272942/17 "2022-02-02T16:17:36Z")

</div>

Thank you very much for your help! I’m following your steps but i have a few questions.

3 where is the visual studio solution? i dont know where is it to open it.

1. Where is that file exactly located?

2. Recompile in shipping build from editor?

Thanks again and sorry about the trouble but i never had this problem before and i never had to do this.

---

<div class="post-metadata">

**Author:** ![GRIMTEC](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/grimtec/32/251054_2.png) [@GRIMTEC](https://forums.unrealengine.com/u/GRIMTEC)\
**Post date:** [February 2, 2022, 7:47pm UTC](https://forums.unrealengine.com/t/unreal-4-27-2-steam-sdk-1-51-cant-find-my-own-session-4-27-2-steam-sessions/272942/18 "2022-02-02T19:47:22Z")

</div>

> [@DokySamejima](#):
>
> where is the visual studio solution? i dont know where is it to open it.

After you click “Generate Visual Studio project files” you should see a file in your project directory with the name of your project and the extension .sln That’s the file you need to open with Visual Studio.

> [@DokySamejima](#):
>
> Where is that file exactly located?

YourProject\Plugins\Online\OnlineSubsystemSteam\Source\Private

> [@DokySamejima](#):
>
> Recompile in shipping build from editor?

Doesn’t really matter how you do it, just make sure you are actually using the updated dlls when you test. The topic is a bit too broad to explain it in a few sentences (google it maybe), but you should be fine if you package the project and then use that to test, in whatever configuration. The engine will usually rebuild the project while packaging.

---

<div class="post-metadata">

**Author:** ![DokySamejima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DokySamejima](https://forums.unrealengine.com/u/DokySamejima)\
**Post date:** [February 3, 2022, 12:40am UTC](https://forums.unrealengine.com/t/unreal-4-27-2-steam-sdk-1-51-cant-find-my-own-session-4-27-2-steam-sessions/272942/19 "2022-02-03T00:40:47Z")

</div>

I followed all the steps.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/8/b3803388358d1c1b2150c8258ce11d87e42372d2.png)  
Now im recompiling the game. i’ll let you know the results. Thank you again.

---

<div class="post-metadata">

**Author:** ![DokySamejima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DokySamejima](https://forums.unrealengine.com/u/DokySamejima)\
**Post date:** [February 3, 2022, 3:35pm UTC](https://forums.unrealengine.com/t/unreal-4-27-2-steam-sdk-1-51-cant-find-my-own-session-4-27-2-steam-sessions/272942/20 "2022-02-03T15:35:30Z")

</div>

GRIMTEC, i just can say thank you very much because you just helped me solving my problem. Now i can create session and join without any problem. You are my saviour!! I will add your name to the special thanks credits of the game. It will be on Steam soon and its name is brutal rifters in case u wanna see it. A million times thank you.

---

<div class="post-metadata">

**Author:** ![DokySamejima](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DokySamejima](https://forums.unrealengine.com/u/DokySamejima)\
**Post date:** [February 12, 2022, 1:59pm UTC](https://forums.unrealengine.com/t/unreal-4-27-2-steam-sdk-1-51-cant-find-my-own-session-4-27-2-steam-sessions/272942/21 "2022-02-12T13:59:18Z")

</div>

Hello again Grimtec. I’m testing to add online in a new project also in 4.27.2. This time im also using VRM4U plugin.

I followed all your steps but this time in this new project the solution didn’t work. Just the same problem as i had in the other project. I can create session but i can find it.

I tought you may know how to solve it too. Thanks again.

[Next page](https://forums.unrealengine.com/t/unreal-4-27-2-steam-sdk-1-51-cant-find-my-own-session-4-27-2-steam-sessions/272942.md?page=2)
