|
-
Aug 8th, 2002, 06:49 PM
#1
Thread Starter
Lively Member
Get the running Quake2 servers (gamespy-like)
Hi,
How can i have all local Quake2 servers actually runing displayed?
I can connect to the port 27901 and send UDP-Broadcast-messages there, and then it displays "Runt Packet" in the Game but what i want is to retrieve the server-infos from all local servers. If i connect to the 27910 port (Serverport for Q2) i don't get the "Runt Packet" message, and in both port-cases i don't get an UDP reply
----------
using vb6 and the original winsock
----------
thx4help
-=R0ckAw4Y=-
-
Aug 9th, 2002, 02:26 PM
#2
Thread Starter
Lively Member
well thx for you help but i figured it out by myself
i tried many things (like packet-sniffing), i even brute-forced Q2 so for those interrested in the solution:
you gotta send this string
chr(255) & chr(255) & chr(255) & chr(255) & "status" & chr(0)
(if you just wanna ping a server then replace "status" by "ping")
to the remotehost "255.255.255.255" on port "27910" and then you should get an answer like this:
ÿÿÿÿprint
\mapname\urban3\roundlimit\0\actionmaps\0\noguns\0\gamedate\Sep 29 1998\gamename\baseq2\teamplay\0\actionversion\v1.0\floodprot\0\shelloff\0\splatlimit\40\bholelimit\4 0\maxclients\1\protocol\34\cheats\0\timelimit\0\fraglimit\0\dmflags\528\version\3.20 x86 Oct 16 1998 Win32 RELEASE\hostname\noname\gamedir\action\game\action
0 12 "-=R0ckAw4Y=-"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|