Jump to content

How do games such as Halo scan the network to see if there are any LAN servers

- - - - -

  • Please log in to reply
1 reply to this topic

#1
liamzebedee

liamzebedee

    Programmer

  • Members
  • PipPipPipPip
  • 129 posts
In Halo 1 for PC you could go to Multiplayer and search for locally hosted servers. In many other modern games you can do this too. My question is, how is this possible?

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
  • Location:Upstate, South Carolina
  • Programming Language:C, C++, PL/SQL, Delphi/Object Pascal, Pascal, Transact-SQL, Others
  • Learning:Java, C#, PHP, JavaScript, Lisp, Fortran, Haskell, Others
There's a few ways to do it. OpenArena uses a master server that keeps track of all servers that are running. When you "look" for a server, you connect to the master to get a list, then start pinging those servers to find out which ones are close, based on ping.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users