Originally Posted by
Jenner
Ah! I get it now!
You don't consider your "database" to be a "server"! You're using the terms interchangeably. When WE say "database", that "database" could be ANYWHERE. Most likely, it's on the SAME machine the game is installed on. When YOU say "database", you're only thinking it's some machine on the web somewhere. That's part of the confusion.
The other part of the confusion, is you don't expect the clients to KNOW each other. See, when I was giving my example, I was giving it like a bunch of friends connecting together to play Doom or Quake, or Warcraft 2. You just want a general chat lobby where everyone playing your game, regardless if they're in games together or not, can hang out and chat.
See, your "database" will have to be running on SOME machine that's on 24/7 and connected to the internet. That's the "server" and it will be on 24/7. You're going to need a 24/7 machine no matter how you look at it if you want this to be a "global" chat. All you need to do is write a server program... and put it on that database machine! Better yet, install an IRC server on that database machine, and just write some code in your clients to interface with it. That would be a whole heck of a lot easier.