Registry r = LocateRegistry.createRegistry(Port); r.rebind("RMIServer", new RMIServerImpl());