Jump to content


best way to resolve running game servers on lan


3 replies to this topic

#1 serious spaam

    New Member

  • Members
  • Pip
  • 6 posts

Posted 28 August 2003 - 12:05 PM

i was wondering how a game client automatically finds currently running game servers in a lan. after a bit of thought i came up with a server side and a client side approach( i havent tested them yet ).

1) the client side approach is probably a bit dull, but could work for (single network) lan: the idea is that the client resolves its ip adress and scans the whole subnet for running servers. while this would be fast and simple for C,D class networks it will be probably quite expensive and time consuming in an A class lan.
another down side is as indicated above that lans split up in multiple networks are not covered by this approach.

2) the server side solution that popped into my mind would require the game server to
send a broadcast signal as kind of a beacon( a ping for instance ) for the game clients. again this approach may perform weak in a big lan with plenty of running servers.

are any of the two approaches worth a try or total crap ? what would you suggest ? has anyone in here mastered such a problem before ?

greetings, serious !!

#2 davepermen

    Senior Member

  • Members
  • PipPipPipPip
  • 1306 posts

Posted 29 August 2003 - 07:37 AM

a friend of me solved that problem i think. i don't know how, as i haven't seen him for a while. i'll try to get that info asap..
davepermen.net
-Loving a Person is having the wish to see this Person happy, no matter what that means to yourself.
-No matter what it means to myself....

#3 baldurk

    Senior Member

  • Members
  • PipPipPipPip
  • 1057 posts

Posted 29 August 2003 - 05:39 PM

I think there is a way to query the OS for current computers. I believe that the OS keeps a record of all computers on the lan, so you get their IPs and send a message to them all. However I could be wrong as networking was never my strong point.
baldurk
He who knows not and knows that he knows not is ignorant. Teach him.
He who knows not and knows not that he knows not is a fool. Shun him.

#4 serious spaam

    New Member

  • Members
  • Pip
  • 6 posts

Posted 02 September 2003 - 12:02 PM

thanks, i will take a look on some os-apis (linux/win32) for it. strangely i have not thought about this way at all (i think windows does some netbios magic - which is probably similar my broadcasting idea).

greetings,
serious





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users