Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am currently working on a Java multiplayer game. The game itself (single player) already works perfectly fine and so does the chat. The only thing that is really missing is the multiplayer part. Sadly I am absolutely clueless on where to start with that. I roughly know that I will have to work with packages, and I also know many things about streaming etc (chat is already working). Oh and it should - according to this article - be a UDP server. My problem is that I can't find any resources on how to do this. A tutorial (book or website) would be perfect, alternatively a good example of an open source client/server (in Java of course) would be fine as well. If you feel like doing something helpful I'd also really appreciate someone "privately" teaching me via email or some chat program :)

Thank you!

share|improve this question

closed as too broad by Anko, Seth Battin, Josh Petrie Apr 20 '15 at 15:19

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

UDP vs. TCP: whether you use one, the other or both depends entirely on the game; there is no blanket statement possible. – Patrick Hughes May 3 '12 at 19:34

You may also consider looking at the RedDwarf project that has been a community fork of Project Darkstar. The latter was a Research Project at Sun Microsystems and discontinued after Oracle took it over.

It was developed to be a horizontably scalable middleware and seems to have been very popular. The source of the RedDwarf Server fork is available on Sourceforge. That gave me an idea of how the serverside of a game can be realized. The documentation sometimes lacks information about the intentions of some classes but it gave me a basic understanding.

share|improve this answer

Take a look at Netty - it's a very good high performance networking library that is well suited for game development. It has some very good documentation and tutorials.

See also:

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.