# Getting max amount of players in a session, and getting the host of the session/game

**URL:** <https://forums.unrealengine.com/t/getting-max-amount-of-players-in-a-session-and-getting-the-host-of-the-session-game/310124>\
**Category:** Multiplayer & Networking\
**Tags:** host, unreal-engine, Multiplayer, session, question\
**Created:** [March 9, 2015, 12:17pm UTC](https://forums.unrealengine.com/t/getting-max-amount-of-players-in-a-session-and-getting-the-host-of-the-session-game/310124 "2015-03-09T12:17:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snowcrash5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Snowcrash5](https://forums.unrealengine.com/u/Snowcrash5)\
**Post date:** [March 9, 2015, 12:17pm UTC](https://forums.unrealengine.com/t/getting-max-amount-of-players-in-a-session-and-getting-the-host-of-the-session-game/310124/1 "2015-03-09T12:17:38Z")

</div>

After creating a session using the Create Session node in a blueprint, and switching to a new map as listen server

 ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/4/0d4be89ee415b96df0265c8606aaf5a130ef9fb0.png)  
I want to get the maximum amount of players that this session can hold. I guess I can do that by storing the amount of players in a Game Instance, or something like that. I’m wondering if there’s a node to access the current session and get its data, because its odd that I can create a session but not access its variables.

In addition, I want to find the controller that is the host of the current session, and I can maybe patch something to do so, but isn’t there maybe a node that does that?

Thank You.

---

<div class="post-metadata">

**Author:** ![CelestialCel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@CelestialCel](https://forums.unrealengine.com/u/CelestialCel)\
**Post date:** [July 5, 2015, 1:51pm UTC](https://forums.unrealengine.com/t/getting-max-amount-of-players-in-a-session-and-getting-the-host-of-the-session-game/310124/2 "2015-07-05T13:51:28Z")

</div>

This feature would be nice!

It’s indeed weird you can’t get data from current session with a node.

---

<div class="post-metadata">

**Author:** ![skeleton60](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@skeleton60](https://forums.unrealengine.com/u/skeleton60)\
**Post date:** [November 24, 2015, 2:11pm UTC](https://forums.unrealengine.com/t/getting-max-amount-of-players-in-a-session-and-getting-the-host-of-the-session-game/310124/3 "2015-11-24T14:11:54Z")

</div>

i would like to know too how to retrieve some session information of the current session

---

<div class="post-metadata">

**Author:** ![Davixe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Davixe](https://forums.unrealengine.com/u/Davixe)\
**Post date:** [November 11, 2017, 12:00am UTC](https://forums.unrealengine.com/t/getting-max-amount-of-players-in-a-session-and-getting-the-host-of-the-session-game/310124/4 "2017-11-11T00:00:10Z")

</div>

This is something you can do via c++, you can setup a function that is blueprintcallable and get the session properties with:

```
    IOnlineSessionPtr Sessions = IOnlineSubsystem::Get()->GetSessionInterface();
    FOnlineSessionSettings* CurrentSettings = Sessions->GetSessionSettings(GameSessionName);
    int32 MaxConections = CurrentSettings->NumPublicConnections;
```
