java.rmi.ConnectException: Connection refused to host: 169.254.179.204; nes
843793Jun 9 2003 — edited Aug 28 2006the code on the client side:
Naming.lookup("rmi://172.18.2.238:1099/StubService");
and the code on the server side:
Naming.rebind("rmi://localhost:1099/StubService", stub);
First, from the command line, i write: "start rmiregistry"
Then, run the server, and then run the client, the client does not throw any exception at the lookup step. But when i try to call a remote method, it throws "RemoteException
java.rmi.ConnectException: Connection refused to host: 169.254.179.204; nested exception is:
java.net.ConnectException: Connection refused: connect"
i would be grateful if someone finds a solution?