Networking server list

marasovec

Member
I heard the is only one way how to make a list of running servers and thats using a website.

Any Ideas how to upload server IP and its port on the website and then back to clients?
 

NightFrost

Member
Think of it this way. When you start up your client and want to host a game, how do you announce it to other people who want to play? Just shouting out to the millions of devices on the internet just won't work (for a multitude of reasons we'll skip). What you need is a central clearinghouse to announce hosted games. It is a place that is always at the same address, so it can be coded into the game as default place to look into and connect automatically. When you want to host a game, your client sends a message to the central server about yor intent and connection details. When you want to join a game, you request a list of open games and connection details from the server, then connect directly with the hosting client.

Games with centralized services for security and cheat reasons (think MMOs) of course have all the action happen at server end instead and the client is just a dumb terminal that relays what's going on at server and sends your actions there (to put it simply).
 
Top