Hi everyone.
I have two computers directly connect with a cable.
The xx.xx.xx.119 computer (Windows Vista) is the server where I bind my object.
The xx.xx.xx.120 computer (Windows XP) is the client which try to get the remote object.
When the client try to get the remote object with
Naming.lookup("rmi://xx.xx.xx.119:1099/MyObject")
I get this error :
java.rmi.ConnectException: Connection refused to host: xx.xx.xx.120; nested exception is:
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Unknown Source)
I have no securityManager
Ping xx.xx.xx.119 is ok
Telnet xx.xx.xx.119 1099 : connect ok
I don't understand why the address noticed in the error message is the client address and not the server address.
Have you an idea ? A link ?
Thanks
Rémi,
(Sorry for my English)