The question is - I am doing a network game in the style of Tower Defense, it has the opportunity to connect two players and fight together with a wave of monsters.
When creating a server, it is necessary to implement sending its IP address to a certain cloud storage, and when creating a client, to issue all possible servers for connection. I heard about Service Discovery , but I saw the detailed implementation only for Android. Maybe someone knows a good article about this? The game is implemented in Java. Thank you in advance.