If someone played the game Dukkrak Online (or any similar multiplayer application) on Android, then there is the possibility of creating your own server and connect to it. As I understand the server is created on a remote computer. So I had a question, how can this be realized: creating a new server from an android device on a remote computer.
Or is it done differently? For example, servers are running in advance, and when the "Create game (server)" button is pressed on the device, it becomes visible and the settings change on it ...
PS I would also like to know about the monitoring of servers to which you can connect. Is the search and display of available servers implemented in a separate thread in an infinite while loop? Or is there a solution with a more "beautiful" implementation?