A crash course in computer networking
In this section, I would like to give you a brief crash course on computer networking. Because Godot does a lot out of the box, we don’t have to be complete networking wizards to implement simple multiplayer games. This means that you could skip this section and directly start with the actual implementation of the multiplayer nodes and code. However, I recommend reading on if you want at least some high-level explanation of why we do things the way we are going to do them.
Computers in networks talk to each other through a layered model. On the top level, there is the eventual application, the game. Our game needs to send information from one instance of the game, running on one computer, to another instance of the game, running on another computer, also called another machine. This top layer is called the Application Layer. In between these computers could be a vast network of interconnected servers, routers, and other networking infrastructure...