Networking hosting and/or joining a game [C++]

Hi!

I can’t find enough documentation to get started with the networking part of the game. As a beginning I would want to being able to host a game and join with a few other clients. How can I achieve this in C++? I’m new to unreal engine 4 and haven’t used UDK before. However I think I understand the concept of replication and RPC.

To be more clear:

A. how to properly setup the host as a listen server.

B. how to join that server with a client.

I have found the “shooter” example but find it a bit too complicated as a starting point for understanding the networking system in UE4.

Some help on this subject would be much appreciated.

Hi undercover

I have the same problem currently. I have managed to launch a host by using:

<game.exe> MapName?listen

I have also managed to connect a client by using:

<game.exe> <host ip address>

(It also worked to launch the game and then in game press ~ and then type open

But I am still in the same boat as you, since the actual required code inside I am still unsure about. My client connects successfully, but then the character stops responding to input :frowning:

Will let you know if I find out more.

I got this figured out in another question, see link.

I was able to solve a similar problem. Make sure the clients really gets a start location that isn’t blocked. You can try this by turning of the player-player collision temporary for your players and see if they spawn properly then. If so some custom code must be written to check for non blocked start locations.