RMI Server / Socket Permission

Got an RMI Server running and clients can connect from the localhost. The problem comes if they want to connect from another pc.

Got a policy file like:

grant codeBase "file:/D:/RMIServer/classes/" {

...

permission java.net.SocketPermission "localhost", "accept, connect, listen, resolve";

...

}

Is there any way I can add SocketPermission to all ip addresses? Or to a network like 192.168.0.0/16 without using the java.security.AllPermission?

Tried to use "*", "0.0.0.0" and "192.168.0.0/16" instead of localhost but does not seem to work.

Message was edited by:

Carra

[638 byte] By [Carraa] at [2007-11-27 11:11:38]
# 1

You have to specify the port as well as the host. Something like (at the most liberal):

grant SocketPermission "*:1024-", "accept, resolve";

ejpa at 2007-7-29 13:49:31 > top of Java-index,Core,Core APIs...