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


This is a draft for a potential future feature of GDevelop.

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.


To connect instances, you need to enter their ID in the other instances. The ID can be found with the expression P2P::GetID(). To connect, use the “Connect to other instance” action and pass as parameter the ID of another instance. Both instances will then connect automatically. You can then send an event from one instance to the other one to make sure that the connection is established.