Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.rmi.ConnectException: Connection refused to host: 169.254.179.204; nes

843793Jun 9 2003 — edited Aug 28 2006
the 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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 25 2006
Added on Jun 9 2003
5 comments
567 views