Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

How to do the same in Internet

  Asked By: Muaz    Date: May 09    Category: Java    Views: 817

I have developed a chatting program in java using socket programming. This
program consist of 2 parts: a server application and a client applet.

Steps I used to run this program on the LAN is as follows:
Step 1) I run the web-server (tomcat) on the server machine.
Step 2) Then, I run the chat server application on the server machine.
Step 3) Now, from different machine on the LAN, I open Internet-Explorer
Step 4) In the browser's address bar, I enter the following URL:, where is the server's IP
address and index.html is the html file which contains client applet.
Step 5) And the applet is properly loaded on to the client's browser.
Step 6) Steps 3 to 6 are repeated to open other clients in different machines on
Step 7) Now chatting between different clients begins and continues

Now, I want to upload this chatting program on the Internet. Now, here comes
the problem. I can upload all the server's and client's class files and HTML
file on the Internet. But the problem is that how can I run the chat server
application, on the remote server(where I have uploaded all the files) as in
Step 2 of LAN. In case of LAN, there is no problem because I simply write the
command "java Server.java" on the server machine to run it. But in case of
remote server, how can I execute the above command?

Whats the solution?

Should I use Servlet to solve this problem? If so, then what are the steps?
I have heard about something like cgi-bin, is it can be helpful? If so, then
Or, there is some other alternatives...??
If anyone need source-code, I will send it.



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on How to do the same in Internet Or get search suggestion and latest updates.