Skip to main content
GameDev.net gamedev.net
🔒 Locked

Quickie...

Started by d000hg Jun 5, 2002 at 3:54 PM 7 replies 450+ views
Original Post
d000hg
d000hg
How do you find DPlay games on the internet? On a LAN you call the enumerate hosts method, but if you connect to the internet and call it, will DPlay search the entire internet looking for games? I assume not, so how do you do this? Also, without having a dedicated server machine as a node in the WWW to host games (ie all hosts are people playing a game from their own machine) can you get decent numbers of players at once and how would you keep track of what games are going on so a clkient could go to the game''s website and see a list of current games? Cheers.
Waverider
Waverider
It seems to me you may have answered your own question - you do need a central machine to function as a lobby. Or code your game to log itself into Gamespy and lease some space there.

But I''m not a full guru on the subject, so if there is another answer, my ear is perked!
It's not what you're taught, it's what you learn.
Prefect
Prefect
Waverider: That''s correct.

I could think of two other solutions, however I''m not sure they''re too feasible:
1) you can announce game sessions to a multicast IP, but multicasting is still problematic on the internet
2) you could use a peer-to-peer network; it could even be possible to (ab)use an existing peer-to-peer network, if its protocol is flexible enough. Has anybody actually tried to this?

cu,
Prefect

Return to the Shadows
Widelands - laid back, free software strategy
Zanthos
Zanthos
You could even use an IRC network, eg, Afternet, don''t know what they''d say about it but registering a chat room and having your servers connect to that, etcetc... and have your clients connect to the room also, and query all the games in the room.

You could also use a CGI script where game servers submit their IPs and your game client can connect to the server and issue a HTTP request for the script and get a list of active games. This method would unfortunately require a ''rinsing'' of the IP list if a server dies and is unable to remove itself from the list.
d000hg
d000hg
Well I have no idea how you''d get a central server up or how clients nwould communicate with it. Or how much it would cost. And I doubt I''m going to be doing that, though nI had some cool ideas for games over the internet. Maybe if I get a game that is good, someone might step in to help with that?
d000hg
d000hg
And with the central server thing, would that server be the server through which all games are run? Or could it just give the addresses of the servers that are hosting games. That way anyone with a quick connection could chost a game so you could have potentially many more games while the central server doesn''t need a huge expensive connection.
GimpMaster
GimpMaster
Thats how most big games do it. For example MOHAA uses Gamespy software so when your looking for a game you just query Gamespy and they dump off a list to you of like 1000 servers. Also same thing with any other quake3 engine you contact a central server and they give you a big list.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.