Download

Do you also play as a client when using listen server?

I’m setting up a game using listen server and when playing as the server, some things like the UMG doesn’t replicate.
When playing the build of the game with other people, will the host play as a client or as the server?
If so, how does the host get everything the clients get?

Hi,

some things like the UMG doesn’t replicate.

UMG never replicates, widgets only exist locally.

will the host play as a client or as the server?

AFAIK the ListenServer will play as “server”. If you want everyone the same, you need Dedicated Server.

If so, how does the host get everything the clients get?

What do you mean? All the communication between clients will always go through the server. So in order for a client to get something from another client, server always gets it first.

By default when you package a game it will be a standalone configuration that includes listen-server code.

The alternatives are Server only (dedicated Server) and Client only ( unable to host games)

If you host a game on a standalone build (listen-server) you still only run one process but it serves two jobs. Hosting the game for other players and creating a player for itself.
The host therefore needs to carefully check whenever it is doing things on behalf of its own controlled player, other players, or the server.

1 Like

There’s a lot more to this. Its actually a case of the Host (player) getting almost super abilities versus the other clients. :wink: So its important to test with at least two clients neither of which is the server. Summarized a few gotchas if you follow the links here / here