Java RMI : connection refused

If you’re getting that on bind, rebind, or lookup, the Registry isn’t running. If you get it doing the remote call, see item A.1 in the RMI FAQ supplied with the Javadoc, and if you’re running Linux also check that your /etc/hosts file maps 127.0.0.1 to localhost and your real ip address to your real hostname – this has been a common problem in some Linux distributions.

Leave a Comment