This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I got a little problem. I programmed a Java based Messenger. The Server application is running on my Webserver. The IP of the Webserver is 192.168.0.1 (LAN) and DHCS (Internet). The DHCP IP is dynamically linked to a domain (http://www.dhs.org/).
java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.0.1:4257 connect,resolve) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at java.lang.SecurityManager.checkConnect(Unknown Source) at java.net.Socket.<init>(Unknown Source) at java.net.Socket.<init>(Unknown Source) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source) at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source) at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source) at sun.rmi.server.UnicastRef.invoke(Unknown Source) at MessageDaemonImpl_Stub.login(Unknown Source) at MessageApplet.init(MessageApplet.java:69) at sun.applet.AppletPanel.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
192.168.0.1 is also the Router/Gateway (Firewall) in my LAN.
What might be the problem? I wonder where the applet gets the IP 192.168.0.1... In the Client and in the Server source there is never a connection to 192.168.0.1, I always use "getCodeBase().getHost()" to get the address of the server.
Best Regards [ November 04, 2005: Message edited by: jillout ]