File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes RMI, access denied Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Badass: Making Users Awesome this week in the Game Development forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI, access denied" Watch "RMI, access denied" New topic

RMI, access denied


Joined: Sep 16, 2001
Posts: 1

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 (LAN) and DHCS (Internet). The DHCP IP is dynamically linked to a domain (

If I run the applet (on the Java VM on host using there is no problem. But if I try to run the applet using I get the following exception: access denied ( connect,resolve)
at Source)
at Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
at<init>(Unknown Source)
at<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(
at Source)
at Source) is also the Router/Gateway (Firewall) in my LAN.

If I try to run the applet elsewhere on the internet using

What might be the problem? I wonder where the applet gets the IP In the Client and in the Server source there is never a connection to, I always use "getCodeBase().getHost()" to get the address of the server.

Best Regards
[ November 04, 2005: Message edited by: jillout ]
I agree. Here's the link:
subject: RMI, access denied