At server RMI
I have the following settings:
Registry r = LocateRegistry.createRegistry(rmiport);
r.rebind(rminame, h);
System.out.println("Servidor RMI pronto:");
where, rmiport = 7000
and rminame=sistemas
On the client I have the following settings:
System.out.println(rmiServerName);
h = (ServerInterface) Naming.lookup(rmiServerName);
where, rmiServerName=rmi://194.210.172.185:7000/sistemas
But when trying to connect I get the following exception
:
RemoteException.
My goal is to connect a client to the RMI server on different machines.