The problem you are having is because applets by default cannot open stream to read or write from the disk (file streams) and they cannot connect to systems other than the one on which they were originally stored. The security on the applet means you must run the browser on the same machine where your web server runs (which makes no sense to have it on a web site that way!) I am also looking for an answer as to how I can set the permissions on my applet to allow it to create my server socket and my client sockets to their machines. I want to be able to have many clients connecting from remote locations to my machine and open a socket to talk to my server. When I debug it with Cafe 3 on the local machine, it works, but when I run the applet in a browser, the whole thing goes kaboom. Massive security errors appear in the Java Console and I can't seem to find docs on how to get around this. I am told that maybe the applet has to be signed? or maybe I will have to implement security... Hmmm
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货