private static boolean isServerRegistered(int port) throws IOException {
		Registry reg = LocateRegistry.getRegistry(LOCALHOST, port, new SslRMIClientSocketFactory());
		try {
			reg.lookup(GhidraServerHandle.BIND_NAME);
			return true;
		}
		catch (Exception ce) {
			return false;
		}
	}
Start a server instance on the specified port.
This server must be disposed before attempting to create another.
@param dirPath server root directory
@param port RMI registry port, 0 indicates that default port should be used
@param authMode authentication mode (-1 for no authentication)
@param enableAltLoginName if true enable alternate login name
@param enableSSHAuthentication if true SSH authentication will be enabled
@param enableAnonymousAuthentication if true anonymous usage is allowed
@throws IOException
Ghidra/Test/IntegrationTest/src/test.slow/java/ghidra/server/remote/ServerTestUtil.java