Connection refused to host: 127.0.1.1

Hi,

I've developed a simple rmi server client software

Everything work if the server and the client works on the same machine, but when I try to lunch the client side on another machine I receive this message:

java.rmi.RemoteExceptionjava.rmi.ConnectException: Connection refused to host: 127.0.1.1; nested exception is:

java.net.ConnectException: Connection refused: connect

Any help will be apprecieted.

Thanks.

ots1

[468 byte] By [s1ota] at [2007-10-3 4:11:36]
# 1
Have a look through this forum for java.rmi.server.hostname and why you might need to set it. Basically your server host thinks its public IP address is 127.0.0.1. This is really a 'hosts'/DNS problem but you can get around it with -Djava.rmi.server.hostname set at the server JVM.
ejpa at 2007-7-14 22:12:12 > top of Java-index,Core,Core APIs...
# 2
Specifying the property: -Djava.rmi.server.hostname=<srvname> the server was able to accept the connection.Thank you very much ejp!s1ot
s1ota at 2007-7-14 22:12:12 > top of Java-index,Core,Core APIs...