1
On the 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
In 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 I try to call I get the following exception
:
RemoteException.
My goal is to be able to connect a client to the RMI server on different machines.