Applets and Servers... Servlets?
I'm wondering why my game isnt working, hoping someone can explain.
I wrote a CheckerClient applet and a CheckerServer application
the client applet connects to the server app on a port 5000 and starts communication via data output and input steams. Client #1 simply sends the server the location the piece moved from and to (4 integers: fromX, fromY, toX, toY) and the server passes that information to client #2.
This works perfectly fine as long as i used my local machine as the server (127.0.0.1) but once i tried uploading to an actual server, the game wont run, it displays, but it wont actually work, it appears as if no connection was made.
When i look at the server application i can see that the server is still waiting for a connection.
After doing some research i saw that this is by design, that applets are not meant to connect over a nerwork, that i should look into servlets.
but before i run off and study servlets which is a completely new concept to me, and seem, at first glance, to be very different from applets, i wanted to make sure that there was no way to have an applet talk to another applet on another machine.
This was a project for school (which ended at getting it to work locally), but i want to host it on my webpage.
i can provide some code if need be, but i dont think the problem is the code since it does work perfectly locally.
please someone enlighten me, or point me in the right direction.