I wonder if there was a way to be able to communicate with an applet client sockets? As soon as I start my applet I start my server, I have always a "access denied" when it works perfectly on my JVM locally. What should I do to solve this problem? (I have for now tested only with html and not with jsp). I am using the following as my socket class :
Code:
import java.io. *;
import java.net.*;
public class Server (private final static int port = 5000;
public static void main (String [] args)
throws IOException (ServerSocket ss; ss = new ServerSocket (port);
Socket s; Communication sal; sal = new Communication (); Connection c; System. out.
System.out.println ("server ready, awaiting shipment at port" + port) while (true)
(s = ss. accept () c = new Connection (s, sal) sal. Add (c); c. start ();)) public int getPort () (return port;))
Please help me in solving my issue.
Bookmarks