where and how to run server application that talks to client applet?

i've been trying to figure this out for 3 months now!!!

i have client(applet)/server application that works perfectly.

i want to run the applet from my webpage, and it in turn is supposed to communicate with the server application.

i know how to publish my website that includes the client applet, but when the client applet runs on the browser, it opens streams with the server.

NOW WHERE DOES THE SERVER RESIDE, WILL IT RUN AUTOMATICALLY WHEN THE APPLET CONNECTS, OR IS THERE A SPECIFIC WAY TO RUN THE SERVER, which supposedly should already be waiting for requests.

i hope someone out there has the answer.

sam.

[665 byte] By [sam021a] at [2007-9-26 5:43:24]
# 1

See http://java.sun.com/sfaq/#socketOrig

Unless the user running your applet has modified their security policies (which is very unlikely), your applet can only communicate with the host from which your applet's class files were loaded.

So your server has to run on the server from which you are serving your applet class files.

Does your hosting provider permit you to run java applications on the server?

Denis.Haskin at 2007-7-1 14:01:49 > top of Java-index,Core,Core APIs...
# 2
i highly appreciate your answer, but how do i specify that the server will run on my host?also how do know whether my host supports this?please specify cause my knowledge in these things is poor...
sam021a at 2007-7-1 14:01:49 > top of Java-index,Core,Core APIs...
# 3
i highly appreciate your answer, but how do i specify that the server will run on my host?also how do know whether my host supports this?please specify cause my knowledge in these things is poor...
sam021a at 2007-7-1 14:01:49 > top of Java-index,Core,Core APIs...
# 4

Hi sam021a,

If you want to run a Java server program that talks to a client applet:

1. as was mentioned the server program must reside on the same machine from which the applet is served to the clients.

2. In order to start this program you (or someone else) must have access rights that allow to start your Java server program.

That is all about it.

studenik at 2007-7-1 14:01:49 > top of Java-index,Core,Core APIs...
# 5

i appreciate this brief but comprehensive response, studenik.

fine then, how can i get these access right and who should i get them from?

also, do you think that there will be any security problems( or exceptions ) in this case, since i'm using sockets for communication?

thanks a lot

sam

sam021a at 2007-7-1 14:01:49 > top of Java-index,Core,Core APIs...