I am building a project consisting in two applets
1- a TCP/IP server
2- a TCP/IP client
I want the applet 1 to listen on a port on TCP/IP, and the applet 2 to connect to the applet 1.
The project works when the two applets are run on local machine, or when they are applications (and not applets), but when I publish the applets, I get the following permission error :
java.security.AccessControlException:access denied (java.net.SocketPermissions xxx.xxx.xxx.xxx:yyyy accept, resolve)
where xxx.xxx.xxx.xxx is the ip address
and yyyy is the port
I want to know how to ask the user for the permission to comunicate over network ( from the applet ).
The applet must work on a Linux/Windows workstation, in Iexplore/Netscape.