473,320 Members | 2,073 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to start the server in a client-server web application?

1
I am trying to make multiplayer an online Battleship game with java applets and i have some questions.
  1. I searched and read a lot and decide that the best way to make an online multiplayer battleship game is by using p2p. Client applets communicate with each other over datagram sockets. And there should be a server which the clients connect. This will show all clients that are connected and players can send invitation to other clients from list and start the game. When the game starts, the server transfers the messages between clients (the shots and where the battleships are placed) over datagramsockets. When user A sends a message to user B, server receives the message of user A and sends it to user B.

    Is it a good choice to make the design of the game like this? (Sending the messages over datagramsockets (UDP) and a server between all clients. Can you suggest any other way? (I should use java and the game should be played on browser)
  2. How can i start the server side of this application? I saw some application which client side is coded as applets and server as application. On my computer, i can start the server by doubleclicking the jar file or running from Eclipse, then run the client applets from web browser(by using WAMP) or from Eclipse and it works perfect.
    But when i try the same thing in a web server, there isn't any problem about running the client applets but i can't find out how can i start the server before running the clients and the server shouldn't be closed if i don't want? How can i run the server from browser on a web server? (if it is written as application, not applet) Can the server be written as applets? Do you have any other suggestions?
Jan 3 '11 #1
1 1746
Oralloy
985 Expert 512MB
feamor,

You'll need to install your server as a service on the system.

It's done in two radically different ways, whether you're running Windoze or *NIX.

Under Windoze, log in as administrator and use the services manager.

Under *NIX, log in as root and craft a system daemon.

Not trivially helpful, but it's a start.

Merry New Year and Good Luck!
Oralloy
Jan 3 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Arun Goel | last post by:
I have installed Oracle client & Oracle database(9.2.0.4) on Red Hat 9.0. It seems to me everything went fine in installation as I followed notes from...
26
by: Don | last post by:
I'm writing an html page with some JavaScript that reads a web page into a client-side temp file, then reformats it, then submits that same file as a URL to the browser for display, via...
13
by: cab0san | last post by:
I downloaded the DB2 runtime client, but the Client Base support and the TCP protocol do not install. I re-run the setup select them to run from disk, and they still show as not installed. What am...
5
by: Paul H | last post by:
How do you folks get a reliable and complete brief of what is required before development starts? I am forever going back to a client once a project has started saying "Hang on, now that I've...
1
by: bixbarton | last post by:
Running C# .NET 1.1 I'm experiencing a weird oddity. We have a client app which access the webservice at http://www.test.planningportal.gov.uk/soap/servlet/messagerouter If I start the...
1
by: Ronald S. Cook | last post by:
1) I start my client Windows app 2) At a breakpoint I attach to the aspnet_wp.exe 3) I continue stepping through code I am expecting to make it over to the service project (where I have a...
47
by: SOLAV | last post by:
This is the only working way to completely hide your JavaScript code from the client just like PHP or ASP code. Here we'll need the help of PHP. Here is the code: index.php...
1
by: tsic | last post by:
Bonjour, je suis bloqué ilya preque 2 semaines dans le code suivant. je veut que le client et le serveur envoyent leurs message d'une maniere comme msn. je crois qu'ilya quelque chose à ajouter dans...
0
by: unknown2 | last post by:
Hello, The DBA's installed the IBM DB2 Client 9.1 on several Windows XP computers. The people, which needs this Program, has non andministrativ rights on their Client computer. The problem: If...
5
by: NewLegend | last post by:
Hello i'm writing a class for network all works fine but when client disconnected my code can't dected it so if u can help me or say is there an error on the code i will be glad ,alot of thanks ...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.