Game Development Community

curious about dedicated server

by Thomas Salisbury · in Torque Game Engine Advanced · 07/23/2009 (9:09 pm) · 6 replies

From my log file:
Quote:Engine initialized...
Sending heartbeat to master server [IP:74.63.12.22:28002]

When selecting to run in dedicated mode, I am curious why the dedicated server would need to query a "master Server"? A dedicated server is supposed to BE the master server? Or was this left in so all your dedicated servers could query a master server for a server list in all the clients?

#1
07/23/2009 (10:26 pm)
Quote:A dedicated server is supposed to BE the master server?
No. Clients need to know which servers are hosting their game. This is done with the help of a master server.

(7am explanation)

  • A game server is hosting a game for clients (dedicated means that server is not running that game at the same time).

  • A game server "registers" with a master server.

  • A master server is "managing" a list of game servers.

  • A client connects to the master server to receive a list of game servers for his game.

  • A client can then connect to one of the game servers from the received list.

Hope that helps.
#2
07/23/2009 (11:30 pm)
yup... I got ya.
Thank you. I understand how it works now.
#3
07/24/2009 (4:53 pm)
So are most people using an httppost for the Master Server then, or has anyone done anything that they want to post a resource for that would be the "master server"?
#4
07/24/2009 (6:14 pm)
also, does anyone happen to know what the function for binding the dedicated to an IP address?

I am trying to add a -serverip to the dedicated server setup, but I can't find a biding setting anywhere in the files. I found the port, and have it functioning, but no IP.
Please help. :)
#5
07/24/2009 (11:11 pm)
There are at least three master server resources (search is your friend):

PHP MasterServer for Torque

Push Button Master Server

Master Server Prototype

I don't know how to bind a dedicated server to an IP but it shouldn't be too hard to find or add something in the code :)
#6
07/27/2009 (1:43 pm)
hmm.. I looked through the resources. I guess the titles threw me off a bit, I should have caught that last one. Sorry, my bad. Thank you for those.