**This is an old revision of the document!**

Peer-to-peer

This is an experimental feature, it is potentially subject to change and may contain bugs.

GDevelop supports peer-to-peer (P2P) connections to enable basic multiplayer games. This works through the concept of remote events. Connect multiple instances of the game using their id, before remotely triggering conditions on the other instances.

This extension is not suitable for all types of multiplayer games and is potentially unsafe against cheating. As every instance of the game is connected, there is no machine more trusted than others that can verify if someone is cheating (unlike dedicated servers). P2P supports a maximum of 250 simultaneous connections, and is therefore also not suited for multiplayer-focused games like Agar.io or MMOs.

Connecting

For connecting one or more instances, you need to enter the ID of one of them in the others. The ID can be found with the expression P2P::GetID(). For connecting, use the “Connect to other instance” action and pass as parameter the ID from the other instance. Both will then connect automatically. You can then try to send an event from one to the other to make sure the connection has happened.