-- Connecting to remote server through sockets --
Hi Friends,
I have developed a java application. When I directly run the application from the command prompt, it gets connected to the remote server through sockets.
But when I embed this application into html file, then I am unable to connect to the remote server.
Can anyone of tell me why is it so? Also I shall be happy to know the appropriate solution.
Thanks.
I did not get what you said.I mean I created a html file. In that file, I attached the application class file as an applet. Now when I run it, it won't get connected to the server.
> I did not get what you said.
> I mean I created a html file. In that file, I
> attached the application class file as an applet.
> Now when I run it, it won't get connected to the
> server.
Only applets can be run in web browser.
The unsigned applet can only make socket connection to the machine or web server where from it was loaded(hosted).
The signed applet can connect (make socket connection) with the machine other than it was loaded from. So you have to sign your applet as the previous member said in his reply.