Re: Problem opening RMI port other than default
Tuesday, March 12, 2002 03:04 AM
Matt I am also new to RMI but I have recently finished an assignment on it. I will try my best to answer your problem.
Try making your own policy file. I have pasted my policy file just use this and see if it makes any difference
IF you look closely u can see a line
java.net.SocketPermission "*:1024-65535", "listen,accept,connect";
this will give your program permission to open any port for you. I guess I am not sure.
// allows anyone to listen on un-privileged ports
permission java.net.SocketPermission "*:1024-65535", "listen,accept,connect";
permission java.io.FilePermission "d:\Remote\Server\classes\-", "read";