How to check the current connection is alive?

Hi,

I don’t know if UE4 has this kind of feature. But you can implement a “ping/pong” system yourself easily using UE4 network features.

For example:

  1. Client start a timer and call a server RPC function “Server_ping()”
  2. The server now knows the client is alive
  3. Server then call the client RPC function “Client_pong()”.The client now knows the connection is alive.
  4. If the client never get the “Client_pong()” call, let’s randomly say, withing a second (using the timer), then consider the connection lost ?

This can be done in both ways I guess.

Good luck. Best regards :slight_smile: