I have a question on the above topic. I would like to develop a game and of course, if possible, in public multiplayer. As with most multiplayer games with a "dedicated server".
For testing, however, I initially designed the game for LAN multiplayer and that works fine. My next step would be "port forwarding" in my router so that my friends (only those I trust) can join the game from home.
My question is now, if I were to rent such a "dedicated server", do I and my friends have to change anything in the router (with regard to port forwarding)?
Most multiplayer games can be played immediately without having to adjust anything. I guess with such a server port forwarding only has to be set once for the server and not for everyone who connects to it?
I think I did not understand the principle of port forwarding correctly, could someone clarify that?
PS: Small bonus question for those who know exactly. My Android mobile phone can also install and open the game, but the LAN connection to my laptop (host) does not work here, unlike with laptop laptop where it works. I was told here that there should be a setting somewhere in Androids that you have to make. Can someone tell me which it is? I just can't find anything…
You don't need port forwarding with a dedicated server. This crutch is only necessary for IPv4 internet access with only one public IP, which the router then has. And forwards it to another computer in the internal network for each port.
With a dedicated server, routing with the entire IPv4 subnet, with IPv6, etc. - i.e. Everywhere else - you don't need that.
Thank you for your answer. Any idea on the Android question?
No, no idea. With Android I can easily access the open ports in the local network.
Okay found it by accident. When exporting GoDot to Android you had to set the "Internet" permission. Now my cell phone has correctly connected to my laptop. It is very laggy, I have to look again and research why ^^ Thanks in any case for your help.
What I was also wondering, all these multiplayer games with server lists (open server list, host server → add list, filter, join servers etc.), how is it done? Is there only one dedicated server, and a separate game instance is created for each "host request"? Or how is that achieved? Does anyone have a clue.