Making an multiplayer game in java (Applet)

Hi all,

I've made an applet in java. It's a single player pong game.
What is the easiest way to make an very easy multiplayer game?

To get the point you only have got to tell me how I get started.

To give u an id. I would like to play against a friend. I know his ip-address.
The applet only needs to know the coordinates of his mouse.
ThomasmmAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

TimYatesCommented:
Make a server to run where the applet is downloaded from, then use the server to communicate with all of the applets

Or, if you sign the applet, so it can connect to other IP addresses, then just use ServerSockets to send the information between the applets (you'd have to type in the IP address of your friend, and he would have to do likewise :-)

The best way is #1

Applet1 --> register -->  Server

Applet1 <-- list of current users <-- Server

Applet1 --> choose user #2 --> Server

Applet1 --> make move --> Server --> made move --> Applet2
Applet1 <-- made move <-- Server <-- make move <-- Applet2

That kind of thing :-)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Java

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.