GabP404 / MyShelfie-multiplayer-game

Other
1 stars 0 forks source link

network: use hostname instead of IP address #54

Closed giuseppe-steduto closed 1 year ago

giuseppe-steduto commented 1 year ago

After solving #51, we would probably need a way to pass the IP address of the server to the Client and Server classes. However, it would be cool if instead of passing the IP, we could pass a custom domain name (such as myshelfie.gc7.polimi.it).

Notes:

giuseppe-steduto commented 1 year ago

It is completely doable with just a bit of network administratrion! Adding a DNS entry for the server IP on the DNS server used by the clients and publishing that IP from server is enough to allow clients to connect to the hostname.