![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Sep 2005
Location: Slovenia
Posts: 17
Rep Power: 0
![]() |
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? |
|
|
|
|
|
#2 |
|
Programming Guru
![]() |
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...
__________________
|
|
|
|
|
|
#3 |
|
Troll
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4
![]() |
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 |
|
|
|
|
|
#4 |
|
Newbie
Join Date: Sep 2005
Location: Slovenia
Posts: 17
Rep Power: 0
![]() |
Ok just wanted to know the principle
![]() Thank you both! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|