Why do I always get an "Invalid port Range: 21" exception when running RMI with a file:// codebase and the security manager properly configured on WIN32?

The default configuration of the Java policy file does not permit usage of ports under 1024. These are considered privileged ports under UNIX. While you are using a Windows OS which doesn't have that restriction, the Java limitation is for all operating systems.