# Dedicated server with Steam is a joke

**URL:** <https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620>\
**Category:** C++\
**Tags:** unreal-engine\
**Created:** [January 16, 2016, 6:27pm UTC](https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620 "2016-01-16T18:27:44Z")\
**Posts on this page:** 20\
**Page:** 6

<div class="post-metadata">

**Author:** ![Inph1del](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/inph1del/32/1148459_2.png) [@Inph1del](https://forums.unrealengine.com/u/Inph1del)\
**Post date:** [October 17, 2016, 5:36pm UTC](https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620/103 "2016-10-17T17:36:24Z")

</div>

Any update on this for 4.13? I can’t get my dedicated server to be found using dev 480. Dev build

---

<div class="post-metadata">

**Author:** ![Zoc](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zoc/32/88714_2.png) [@Zoc](https://forums.unrealengine.com/u/Zoc)\
**Post date:** [October 17, 2016, 11:21pm UTC](https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620/104 "2016-10-17T23:21:47Z")

</div>

> [@Inph1del;610609](#):
>
> Any update on this for 4.13? I can’t get my dedicated server to be found using dev 480. Dev build

This is an issue where the game doesn’t get listed. I don’t recall the specifics and I think [this pull request](https://github.com/EpicGames/UnrealEngine/pull/2135) is related to that (it has been a while, sorry). I remember that, though, to join a game on like that, you would need to right click your friend on steam and join your friend game.

Also, iirc, you need to enable NullSubsystem to be able to get the game listed like that.

Again, it has been a while so I might be wrong/outdated.

---

<div class="post-metadata">

**Author:** ![Inph1del](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/inph1del/32/1148459_2.png) [@Inph1del](https://forums.unrealengine.com/u/Inph1del)\
**Post date:** [October 20, 2016, 4:06pm UTC](https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620/105 "2016-10-20T16:06:16Z")

</div>

I’ve submitted my problem with advertisement of a dedicated server on answer hub and spiked out this thread , unsure if this got merged or not but would like to not need to use subset of the released engine to have a dedicated server show up on steam. For sake of uodates down the road etc

---

<div class="post-metadata">

**Author:** ![Inph1del](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/inph1del/32/1148459_2.png) [@Inph1del](https://forums.unrealengine.com/u/Inph1del)\
**Post date:** [October 20, 2016, 4:07pm UTC](https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620/106 "2016-10-20T16:07:46Z")

</div>

[https://answers.unrealengine.com/questions/505934/ue4-dedicated-server-and-steam-running-in-backgrou.html](https://answers.unrealengine.com/questions/505934/ue4-dedicated-server-and-steam-running-in-backgrou.html)

Some answers from epic are there looks promising.

---

<div class="post-metadata">

**Author:** ![adipFTW](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@adipFTW](https://forums.unrealengine.com/u/adipFTW)\
**Post date:** [October 22, 2016, 1:15pm UTC](https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620/107 "2016-10-22T13:15:47Z")

</div>

> [@Scienziatogm;488154](#):
>
> Pull request done : [https://github.com/EpicGames/UnrealEngine/pull/2135](https://github.com/EpicGames/UnrealEngine/pull/2135)

Hey, I’m running into trouble getting this to compile. When building for development editor i get a few error messages: [http://puu.sh/rRF3A/95742bee51.png](http://puu.sh/rRF3A/95742bee51.png)

Are those related to your changes or is something wrong my set up? I’ve already reinstalled VS, but to no avail. I cant wait to get this to work 😛

EDIT: Just made the effort to manually apply your changes to a fresh download of the release branch, brings up even more and different errors: [http://puu.sh/rSGVw/d10b4e4d67.png](http://puu.sh/rSGVw/d10b4e4d67.png)

EDIT 2: After triple checking, i was able to get rid of one error, but the rest persists: [http://puu.sh/rSMlo/07db3e67c8.png](http://puu.sh/rSMlo/07db3e67c8.png)

---

<div class="post-metadata">

**Author:** ![Inph1del](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/inph1del/32/1148459_2.png) [@Inph1del](https://forums.unrealengine.com/u/Inph1del)\
**Post date:** [November 22, 2016, 1:59am UTC](https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620/108 "2016-11-22T01:59:00Z")

</div>

This has been updated to 4.14 was able to compile it today.

---

<div class="post-metadata">

**Author:** ![Dr\_Jerm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dr\_Jerm](https://forums.unrealengine.com/u/Dr_Jerm)\
**Post date:** [November 27, 2016, 10:00pm UTC](https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620/109 "2016-11-27T22:00:13Z")

</div>

> [@Scienziatogm;526111](#):
>
> If Epic merges my pull request, it will be.

Just wanted to say, your pull request SAVED us. We are scheduled to launch into early access in 3 days and I couldn’t for the life of me get our dedicated servers working correctly (we could connect just fine, but the dedicated servers were not reporting currently connected player counts correctly, so I couldn’t actually route players away from full servers). Merged in your pull request last night (4.14), built this morning, and ta-daa, it works. Thank you SO much. This desperately needs to be added as (as far as I can tell) dedicated servers are completely unfunctional currently (without reporting currently connected players). Cheers!

---

<div class="post-metadata">

**Author:** ![Inph1del](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/inph1del/32/1148459_2.png) [@Inph1del](https://forums.unrealengine.com/u/Inph1del)\
**Post date:** [December 8, 2016, 12:11pm UTC](https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620/110 "2016-12-08T12:11:30Z")

</div>

Epic has mentioned they assigned a engineer to go over this so I’m pretty hopeful this will eventually be put into the main code.

I have a question for anyone who might be able to help as my c++ is lacking.

Going over the guide for sessions in unable to to get it to be implemented as it doesn’t seem to like my use of the session settings used.

My aim is simply to advertise dedicated server to steam master server displaying atleast map name and player count in my server browser.

I’m not sure if where I’m going wrong is due to missing something in a header or not since the information provided gives code but does t include the includes required.

Does anyone have a sample project using 4.14 that accomplishes this?

Any help is appreciated, it’s a major speed bump in my development of a free multiplayer only game.

Thanks!

🙂

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [January 16, 2017, 3:01pm UTC](https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620/111 "2017-01-16T15:01:32Z")

</div>

Since the online sub systems are now moved into Plugins, could we theoretically move this PR into a Plugin format now instead? Haven’t looked at it in detail so just querying

---

<div class="post-metadata">

**Author:** ![Scienziatogm](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scienziatogm/32/906600_2.png) [@Scienziatogm](https://forums.unrealengine.com/u/Scienziatogm)\
**Post date:** [January 16, 2017, 4:15pm UTC](https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620/112 "2017-01-16T16:15:20Z")

</div>

> [@TheJamsh;651926](#):
>
> Since the online sub systems are now moved into Plugins, could we theoretically move this PR into a Plugin format now instead? Haven’t looked at it in detail so just querying

The PR is working with Plugins as 4.13 does, but it can’t be a plugin because World.cpp needs some code and can’t be overridden.

---

<div class="post-metadata">

**Author:** ![CrueL875](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CrueL875](https://forums.unrealengine.com/u/CrueL875)\
**Post date:** [March 15, 2017, 9:43am UTC](https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620/113 "2017-03-15T09:43:52Z")

</div>

Where can I find this plugin? 😮

---

<div class="post-metadata">

**Author:** ![MADHOUSE](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MADHOUSE](https://forums.unrealengine.com/u/MADHOUSE)\
**Post date:** [March 31, 2017, 2:14pm UTC](https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620/114 "2017-03-31T14:14:13Z")

</div>

Any updates on this? A plugin version would be extremely helpfull to getting things setup.

---

<div class="post-metadata">

**Author:** ![\_neo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@\_neo](https://forums.unrealengine.com/u/_neo)\
**Post date:** [April 2, 2017, 10:47am UTC](https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620/115 "2017-04-02T10:47:16Z")

</div>

Hi there,

Even though the little obvious details I seem to have gotten correctly, I’m still unable to find my Dedicated Server in game.  
The server is correctly visible in the Steam Client Server Browser, it just does not appear in our FindSessions query.

Host Game:

```php

FOnlineSessionSettings Settings;
Settings.NumPublicConnections = MaxNumPlayers;
Settings.NumPrivateConnections = 0;
Settings.bIsLANMatch = bUseLAN;
Settings.bShouldAdvertise = true;
Settings.bAllowJoinInProgress = true;
Settings.bAntiCheatProtected = true;
Settings.bUsesPresence = bIsPresence;
Settings.bAllowJoinViaPresence = true;
Settings.bAllowInvites = true;
Settings.bAllowJoinViaPresenceFriendsOnly = false;
Settings.bIsDedicated = bDedicated;

FOnlineSessionSetting MapNameSetting;
FOnlineSessionSetting GameModeSetting;

MapNameSetting.Data = MapName;
GameModeSetting.Data = GameMode;

MapNameSetting.AdvertisementType = EOnlineDataAdvertisementType::ViaOnlineService;
GameModeSetting.AdvertisementType = EOnlineDataAdvertisementType::ViaOnlineService;

Settings.Settings.Add(SETTING_MAPNAME, MapNameSetting);
Settings.Settings.Add(SETTING_GAMEMODE, GameModeSetting);

if (bDedicated)
{
	bSuccess = SessionManager->CreateSession(0, GameSessionName, Settings);
}
else
{
	bSuccess = SessionManager->CreateSession(*Player->GetPreferredUniqueNetId(), GameSessionName, Settings);
}

```

Find Sessions:

```php

SearchSessionSettings = MakeShareable(new FOnlineSessionSearch());
SearchSessionSettings->bIsLanQuery = bIsLAN;
SearchSessionSettings->MaxSearchResults = MaxResults;

if (!bIsDedicated)
{
	SearchSessionSettings->QuerySettings.Set(SEARCH_PRESENCE, true, EOnlineComparisonOp::Equals);
}
			
if (!MapName.IsEmpty())
{
	SearchSessionSettings->QuerySettings.Set(SETTING_MAPNAME, MapName, EOnlineComparisonOp::Equals);
}

if (!GameMode.IsEmpty())
{
	SearchSessionSettings->QuerySettings.Set(SETTING_GAMEMODE, GameMode, EOnlineComparisonOp::Equals);
}

OnFindSessionsCompleteDelegateHandle = SessionManager->AddOnFindSessionsCompleteDelegate_Handle(OnFindSessionsCompleteDelegate);
TSharedRef<FOnlineSessionSearch> SearchSettingsRef = SearchSessionSettings.ToSharedRef();
bFindingSessions = true;
bSuccess = SessionManager->FindSessions(UserId, SearchSettingsRef);

```

Any idea on where the problem lies?  
When debugging, correct params are passed such as bIsDedicated, etc.  
It’s just the sessions returning empty results.  
To make it weirder, it’s not possible to join the server even using direct connect Open IP.

---

<div class="post-metadata">

**Author:** ![Kris](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kris/32/758129_2.png) [@Kris](https://forums.unrealengine.com/u/Kris)\
**Post date:** [April 2, 2017, 8:18pm UTC](https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620/116 "2017-04-02T20:18:38Z")

</div>

Is the Steam/internal net version check passing?

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [April 6, 2017, 12:45pm UTC](https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620/117 "2017-04-06T12:45:11Z")

</div>

> [@Scienziatogm;651971](#):
>
> It’s already done.

Where do we find it? OP hasn’t been updated etc.

---

<div class="post-metadata">

**Author:** ![gamereat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gamereat](https://forums.unrealengine.com/u/gamereat)\
**Post date:** [June 27, 2017, 10:42am UTC](https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620/118 "2017-06-27T10:42:03Z")

</div>

Hey, Has there been any update to this as of recent? I’ve just begun playing around with dedicated server stuff and seem to be running into issues. Any updates on this in terms to it being added to a plugin?

---

<div class="post-metadata">

**Author:** ![Scienziatogm](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/scienziatogm/32/906600_2.png) [@Scienziatogm](https://forums.unrealengine.com/u/Scienziatogm)\
**Post date:** [June 28, 2017, 8:52am UTC](https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620/119 "2017-06-28T08:52:03Z")

</div>

> [@gamereat;728981](#):
>
> Hey, Has there been any update to this as of recent? I’ve just begun playing around with dedicated server stuff and seem to be running into issues. Any updates on this in terms to it being added to a plugin?

I can’t do a plugin because World.cpp can’t be overridden, anyway there is a rejected PR that’s better than mine: [https://github.com/EpicGames/UnrealEngine/pull/3232](https://github.com/EpicGames/UnrealEngine/pull/3232) , it needs only some fixes for bugs (for example needs a check on the NetDriver because the delegate is called on clients where NetDriver is null, so they get Fatal error message)

---

<div class="post-metadata">

**Author:** ![gamereat](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@gamereat](https://forums.unrealengine.com/u/gamereat)\
**Post date:** [June 28, 2017, 4:31pm UTC](https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620/120 "2017-06-28T16:31:41Z")

</div>

> [@Scienziatogm;729482](#):
>
> I can’t do a plugin because World.cpp can’t be overridden, anyway there is a rejected PR that’s better than mine: [https://github.com/EpicGames/UnrealEngine/pull/3232](https://github.com/EpicGames/UnrealEngine/pull/3232) , it needs only some fixes for bugs (for example needs a check on the NetDriver because the delegate is called on clients where NetDriver is null, so they get Fatal error message)

Thanks for the reply been hitting my head against the wall right now. Going to try using / fxing that pull request hopefully that fixes it.

---

<div class="post-metadata">

**Author:** ![BaldDude](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BaldDude](https://forums.unrealengine.com/u/BaldDude)\
**Post date:** [October 31, 2017, 10:12pm UTC](https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620/121 "2017-10-31T22:12:12Z")

</div>

Hello. I’ve read your thread. Is this working in 4.17.2 as well? Thanks.

---

<div class="post-metadata">

**Author:** ![HeySebi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/heysebi/32/467152_2.png) [@HeySebi](https://forums.unrealengine.com/u/HeySebi)\
**Post date:** [November 3, 2017, 9:33pm UTC](https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620/123 "2017-11-03T21:33:24Z")

</div>

Hi. Are these problems still present in the 4.18 version? Would be grateful for an info. Thanks.

[Previous page](https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620.md?page=5)

[Next page](https://forums.unrealengine.com/t/dedicated-server-with-steam-is-a-joke/52620.md?page=7)
