GuruPrasad Das
GuruPrasad Das

Reputation: 19

java.rmi.ConnectException: Connection refused to host

I am trying to run a RMI Application. I have started the the rmiregistry using the following command: rmiregistry 6789.

Now I ran the server application in eclipse passing the the following VM arguments: -Djava.naming.factory.initial=com.sun.jndi.rmi.registry.RegistryContextFactory -Dava.naming.provider.url=rmi://localhost:6789

The following error message is thrown: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: 172.17.209.154; nested exception is: java.net.ConnectException: Connection refused: connect]

172.17.209.154 is the IP of my machine.

Can any one pinpoint as to what is the error.

Upvotes: 0

Views: 2057

Answers (1)

Martin Barnas
Martin Barnas

Reputation: 185

Letter 'j' is missing in second VM argument -Djava.naming.provider.url=rmi://localhost:6789

Upvotes: 2

Related Questions