Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Sep 28th, 2005, 5:44 PM   #1
snow
Newbie
 
Join Date: Sep 2005
Location: Slovenia
Posts: 17
Rep Power: 0 snow is on a distinguished road
Finding local servers

Hello!

I would like to know the basic of a client that searches for local servers like you see in multiplayer games such as warcraft, quake etc.

Is server constantly broadcasting (with UDP) and clients just wait for it... or is it something else?
snow is offline   Reply With Quote
Old Sep 28th, 2005, 6:10 PM   #2
tempest
Programming Guru
 
tempest's Avatar
 
Join Date: Oct 2004
Posts: 1,041
Rep Power: 5 tempest is on a distinguished road
Send a message via ICQ to tempest Send a message via AIM to tempest Send a message via Yahoo to tempest
Look up what a "port scanner" is, this is what is used by Games to detect a running games server (on the game servers port) on the local network...
__________________

tempest is offline   Reply With Quote
Old Sep 28th, 2005, 6:54 PM   #3
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
Finding game servers is not a good use of a port scanner...

For what games refer to as a "LAN" game, the server typically sends broadcast packets with the server info. This is dandy for most LAN setups, but once that packet tries to leave the network, too bad. For "Internet" games, a master server is contacted by the clients looking for games. Depending on implementation, the server can store all the server info, or just the contact info for the server (in which case the client will send an info request to the server to get name/player count/etc). The latter works fairly well, seeing as you also get a ping out of it.

Since you are trying to interop with existing games, open up a packet sniffer such as Ethereal or Ettercap and try to figure out the protocol. Should be fairly simple. Some of the games mentioned likely have online docs somewhere on the subject.
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Sep 29th, 2005, 4:57 AM   #4
snow
Newbie
 
Join Date: Sep 2005
Location: Slovenia
Posts: 17
Rep Power: 0 snow is on a distinguished road
Ok just wanted to know the principle

Thank you both!
snow is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:41 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC