Explain, please, someone how the WiFi multiplayer is arranged in the applications.
The Internet is full of tutorials on this topic. For example, with multicast DNS it is very easy to connect 2 devices on the same LAN. But it turns out that both the client and the server should already be connected to some network (that is, some other device is needed that would distribute this network). If the server turns on modem mode, it will no longer be able to connect to its own network and, therefore, nothing will work.
Please help me figure it out.