PDA

View Full Version : Master Server


Stektr33
08-08-2007, 04:14 PM
Can someone tell me which master server the servers send heartbeats to? and/or which server/port I can send a request to, to get a list of servers currently playing? If the query is not the same as d3, please also provide the query bytes to send in with the request. thanks!

jonny b
08-08-2007, 05:15 PM
does this help ya tr33?
http://community.enemyterritory.com/forums/showthread.php?t=4960

Stektr33
08-08-2007, 08:44 PM
yes, a little bit... i got some of the answers i needed...
the address to hit is: '66.156.222.165' (anybody know what url that is?)
the port is: 27773

and the query is similar to d3... so i'm good to go for the most part... wish someone would just tell me what url 66.156.222.165.

hOTzENpLOTz
08-09-2007, 12:47 PM
does this help?
http://www.dnsstuff.com/tools/ptr.ch?ip=66.156.222.165

this seems to be a dynamic ip though. sure it isn't (or wasn't) yours?

jonny b
08-09-2007, 01:27 PM
nah, thats not his IP.

Stektr33
08-10-2007, 04:19 PM
yes, a little bit... i got some of the answers i needed...
the address to hit is: '66.156.222.165' (anybody know what url that is?)
the port is: 27773

and the query is similar to d3... so i'm good to go for the most part... wish someone would just tell me what url 66.156.222.165.

i actually still don't have my answer... had i looked deeper into that post with the ip..that was a "getinfo" call, which means that ip is the actual qw server. i need the ip to do the "getservers" call.

Stektr33
08-10-2007, 04:20 PM
does this help?
http://www.dnsstuff.com/tools/ptr.ch?ip=66.156.222.165

this seems to be a dynamic ip though. sure it isn't (or wasn't) yours?

not really since that ip is not the master server.
i also tried sniffing the packets but everytime i did a "get new list" from the game, i never once saw a udp packet go out that requested the server list... all i saw were the "info" packets coming back from each individual server.

so frustrating when i know someone out there knows this simple little question.

AnthonyJ
08-10-2007, 04:48 PM
so frustrating when i know someone out there knows this simple little question.

The answer to your question was in badmans post linked to above.

The ingame master server is of no use to you (its using the authenticated connection to the demonware servers used to manage your user account). However, for us server-browser developers they've also released the data through standard HTTP interface - ie, your app should simply use HTTP to get content of http://etqwbeta-ipgetter.demonware.net/ipgetter/ and then parse the (obvious) textual data.

This is working fine in MAXBrowse, and I guess I'll release an ETQW build of it soon.

The IP address quoted above is a server, and the whole getinfo bit is the server query protocol, which is very similar to D3.

Stektr33
08-10-2007, 06:08 PM
thank max... badman's thread, if i'm not mistaken, didn't explicitly say that access to the server list was only through http, and that authentication is required to get the list (hence the demonware.net website).
naturally, since previous id engines provided the list of servers via udp, i thought this would be the same for this new d3 engine.

yes, i did realize the server i quoted above was a server... and noted that on subsequent posts :)

well at any rate, i guess ill code for the http "way". in the meantime, can someone at SD confirm that what max has said and my re-iteration of what he said is indeed correct? only way to get servers is via the demonware url?

thanks.

jonny b
08-10-2007, 07:05 PM
get on IRC and ask Jrad he worked on the in game browser.

AnthonyJ
08-10-2007, 07:41 PM
Or you could just believe me, and do it the way badman describes. :)

I confirmed with SD that the method used ingame would not be accessible before the release of this URL, so theres no need to check again now that there is an official way for external browsers to do it.

BTW, MAX is a brand - ie, Q4MAX (http://www.q4max.com), MAXBrowse (http://www.btinternet.com/~AnthonyJ/MAXBrowse.jpg), MAXScores (http://www.q4max.com/wiki/index.php/MAXScores), MAXStats (http://q4max.fragstore.net/panniweb/q4m_pub_stats/) etc (hm, I'm drinking Pepsi max right now, maybe we should try to get sponsored), not actually my name. ;)

(Nobody snuggles with Max Power, you strap yourself in, and feel the g's!)

Stektr33
08-10-2007, 08:01 PM
i just finished doing it the way badman described, and in all honesty, much better than the udp way, as this way uses port 80 (yippee).

it wasn't a matter of believing you or not. the fact that i don't visit irc and chat with the devs, i'm pretty much resolved to seeing/believing what i read in these forums, and like i said, previous id-based games didn't do it this way, and in fact had master servers we could send udp queries to, so i wanted to be sure that this the only way to get the server list.

a simple 5-word response from anyone from sd was all i wanted but i guess i can't trouble them with that.

jRAD
08-10-2007, 08:08 PM
What AnthonyJ said (extra words.)

Stektr33
08-10-2007, 08:35 PM
5 words, right on the dot :)
thank you for the confirmation. and thank you anthonyj.
(last word)