# How to force dedicated Server start with Onlinesubsystem?

**URL:** <https://forums.unrealengine.com/t/how-to-force-dedicated-server-start-with-onlinesubsystem/651947>\
**Category:** Multiplayer & Networking\
**Tags:** online-subsystem, online-session, unreal-engine, UE5-0, CPP, question\
**Created:** [September 19, 2022, 4:57pm UTC](https://forums.unrealengine.com/t/how-to-force-dedicated-server-start-with-onlinesubsystem/651947 "2022-09-19T16:57:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![YanDaik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@YanDaik](https://forums.unrealengine.com/u/YanDaik)\
**Post date:** [September 20, 2022, 2:48pm UTC](https://forums.unrealengine.com/t/how-to-force-dedicated-server-start-with-onlinesubsystem/651947/2 "2022-09-20T14:48:39Z")

</div>

Ok It opens listening socket conection but client does not see it. Turns out that you have to actually create session when server starts “again”.  
What i did - i made a default server map that start a session and travels to another gameplay map. Than client can see that server.

Also this would be helpfull:

> [@How to host session on dedicated server if it has no player?](https://forums.unrealengine.com/t/how-to-host-session-on-dedicated-server-if-it-has-no-player/652461/2):
>
> What i did - i’ve crated NetId mannually. FUniqueNetIdPtr unid = (FUniqueNetIdRef)FUniqueNetIdString::Create(FString::Printf(TEXT("Dedicated-Server%d"), 0), NULL\_SUBSYSTEM); But then it turns out that FOnlineSessionNull::CreateSession desnt even need it: bool FOnlineSessionNull::CreateSession(const FUniqueNetId& HostingPlayerId, FName SessionName, const FOnlineSessionSettings& NewSessionSettings) { // todo: use proper HostingPlayerId return CreateSession(0, SessionName, NewSessionSettings);…

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-force-dedicated-server-start-with-onlinesubsystem/651947)._
