How to find the amount of players connected to server as the host?

How can you find out how many players are connected to a host , or find out when a new player connects?

In server or outside of it? Everything you need is in GameMode:

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/Ghttps://docs.unrealengine.com/latest/INT/API/Runtime/Engine/GameFramework/AGameMode/GetNumPlayers/index.htmlameFramework/AGameMode/index.html

Get number of players:

There also varables NumPlayers, NumSpectators, NumBots and NumTravellingPlayers all blueprint accessable, you might try to add them up right

PostLogin is ealest in accessable in blueprints event called or player connecting:

https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/GameFramework/AGameMode/K2_PostLogin/index.html

Also each player gets it’s own PlayerController so BeginPlay in controller event can be used to handle player join too