How to code a LAN multiplayer game that utilizes hotspot?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Immanity

I already build my concept of the game but your only opponent is the “ai” I created. I want the game to have a multiplayer. I want it a client to client only with no server. It uses one of the clients hotspot and the other client is connected to it.

The concept of the game is when the client(1) send word, the other client(2) must answer a word that start with the last letter of the word that client(1) send.

Is it possible to do that? If it’s possible how can I do it?

Thanks for the help in advance.

Why don’t you want a server? One player can be a server (master), and other one can be client (puppet). The player that hosts (is server) can also play the game, it doesn’t have to be a dedicated server. So you would have a LAN game as hotspot basically acts like a router.

In short, it’s possible, but I would suggest you do it with master-puppet architecture, not p2p. Check the tutorial below.

High level multiplayer — Godot Engine (3.1) documentation in English

gmaps | 2019-09-17 07:59