Multiplayer game on Localhost using a phone as a remote control, and a PC as a shared display

Hello there. I want to create a game, or rather 2 games (one on the PC, the other on the phone).

Players connect to the same Wi-Fi network from a computer and phones, and then use phones to send data to a computer, where it calculates everything, performs game mechanics and, if necessary, sends some data to the winners that they have a victory window displayed. Please tell me where to find information, how to implement it.

I am equally interested in how to connect specifically via a local network, and how to connect 2 different apps (on a pc and on a phone, where the PC is a certain host)

General networking documentation can be found here:

Some useful examples of service discovery and TCP and UDP client and server connections can been seen in this example project:

Another alternative is to use Nakama game servers which have excellent Defold support:

Tic-Tac-Toe game made with Nakama:

3 Likes