This content has been marked as final. Show 2 replies
1 person found this helpful
806417 wrote:Typically a server runs 24x7, or 8:00-5:00 M-F, or something . So you put your server app on your GD host, start it up, and let it run forever.
but how do i make it so that the server application is running before the applet loads?
and how do i make it so that when 2 different people visit the website with the applet they both use the same CheckerServer application?How is the applet connecting with the application now? I would assume it connects to some IP address and port. So both clients need to connect to the same port on the same server--the one that served them in the first place. I don't really understand what problem you're having here.
Anything helps, if needed i can upload my code here, but is rather long. the applet is a combination of 5 classes and then theres the server appIf it comes to that, you most certainly will not upload your app. Not if you want anybody to read it anyway. If your question is about applet/server connectivity, you would write a tiny [url http://sscce.org]SSCCE that just has enough pieces to have an applet and a server trying to talk. No GUI stuff, no checkers game logic. None of that fluff.
Thank you, im just very new to all this, specially the networking side of this project.
the game is not running when uploaded, but works perfectly locally. I will double check that im using the proper ip, and that i uploaded everything correctly.
your comment was very helpful, specially the SSCCE part, im not concern about this particular program, but it is something i will be glad to know about in the future.