这可能是一个愚蠢的问题。但我没有任何选择澄清它。我有一个在LAN环境系统中运行的聊天服务器。为了测试目的,我已将我的聊天客户端小程序部署到tomcat服务器中。如何从网页访问服务器。我已经给出了我的本地IP地址(192.168.0.XXX,我知道这非常糟糕)。该应用程序称访问被拒绝。得到这个接受
java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.0.106:54555
答案 0 :(得分:0)
如果我理解你的问题,那么问题可能与此有关:
Applets are specifically prohibited from making network connections from machines other than the host they were downloaded from. The only way around this is by using a digital signature in the applet.