Tell me more ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

I'm trying to create a very basic pong game with Java that can have two users on two different computers and one will be the host, or a computer can just be a host and the other two clients connect, well anyways, does anyone know a good website for Java networking tutorials? I have looked at this youtube video

http://www.youtube.com/watch?v=VFF0JRCFCH0

It was great, but at the end the code didn't work, and people also did comment saying they had the same problem. So i started to look at the docs.oracle website, it is very good, but there doesn't seem to be that much example code, just a lot of information. If anyone could point me at a java networking tutorial page that would be sweet, a related tutorial to game java networking would be even more spectacular :)

I did also look at http://www.gamasutra.com/view/feature/3218/java_network_game_programming.php but the code isn't available anymore...

share|improve this question
m.youtube.com/#/user/… this guy on YouTube teaches you how to make a game multiplayer... You may be able to watch them and change it to suit your own needs :) – Savlon Feb 2 at 21:37
Seems alrite, any other examples that are abit shorter, like a simple chat server that clients can connect and chat together? – Canvas Feb 2 at 21:42

closed as not constructive by Byte56, Nicol Bolas, Sean Middleditch, Josh Petrie, Noctrine Feb 4 at 16:07

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or specific expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, see the FAQ for guidance.

1 Answer

http://www.tutorialspoint.com/java/java_networking.htm

Here is a tutorial, it has some code examples and shows you all the methods.

share|improve this answer

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