# How to get notify when a client joints or leaves the server?

**URL:** <https://forums.unrealengine.com/t/how-to-get-notify-when-a-client-joints-or-leaves-the-server/341152>\
**Category:** Multiplayer & Networking\
**Tags:** Networking, unreal-engine, Multiplayer, question\
**Created:** [December 11, 2015, 11:04am UTC](https://forums.unrealengine.com/t/how-to-get-notify-when-a-client-joints-or-leaves-the-server/341152 "2015-12-11T11:04:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![devilhiyan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@devilhiyan](https://forums.unrealengine.com/u/devilhiyan)\
**Post date:** [December 11, 2015, 11:04am UTC](https://forums.unrealengine.com/t/how-to-get-notify-when-a-client-joints-or-leaves-the-server/341152/1 "2015-12-11T11:04:14Z")

</div>

I am trying to get all the players that are there in the server .Currently I am using get All Actor Of Class node on every 2 seconds as my game requires them all to compare their attributes and then rank them accordingly . but its lagging due to it . So is there a way to get the player that joins the server and store it and when player leaves, it fires an event to let the server know a player has left and clear the space .

---

<div class="post-metadata">

**Author:** ![Fallonsnest](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Fallonsnest](https://forums.unrealengine.com/u/Fallonsnest)\
**Post date:** [December 11, 2015, 12:52pm UTC](https://forums.unrealengine.com/t/how-to-get-notify-when-a-client-joints-or-leaves-the-server/341152/2 "2015-12-11T12:52:11Z")

</div>

U can use the GameMode Login/Logout methods for that.  
For getting the connected played list u can use the GameState PlayerArray property instead of iterating trough the game actors

---

<div class="post-metadata">

**Author:** ![devilhiyan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@devilhiyan](https://forums.unrealengine.com/u/devilhiyan)\
**Post date:** [December 13, 2015, 4:30am UTC](https://forums.unrealengine.com/t/how-to-get-notify-when-a-client-joints-or-leaves-the-server/341152/3 "2015-12-13T04:30:05Z")

</div>

I really appreciate the help, hey could You also direct me to where I can get more information about those. Thanks.
