How To Enable P2P On The Server

For Diarkis UDP client to use P2P, the server must enable it.

Enabling P2P is very simple. By adding a configuration as shown below, you may enable P2P.

"enableP2P": true

IMPORTANT: Diarkis P2P supports UDP only.

When P2P is enabled, Echo will send client's address in its response.

You may retrieve the client address as shown below to share with remote clients to start P2P connection.

C#

string clientAddress = udp.MyAddress();

C++

std::string clientAddress = udp->MyAddress();