The strangest RMI connection error
Hi all,
i have a client server application that uses RMI. The server has the following network configuration. It has 2 network interfaces.
hostnameifaceIPnetmask
====================================
sakurae1000g0 203.126.56.80 255.255.255.224
nc_apps5 e1000g1 10.224.100.18 255.255.0.0
when the server application listens on 203.126.56.80 iface, the client
has no problem establishing RMI connection from 10.224.10.122 netmask 255.255.0.0
via a static route with a route in between.
However when I switched the server over to 10.224.100.18, and connects from the same client ( no configuration change) , i get the error
[Wed Oct 11 14:38:53 SGT 2006 darkstar] ERROR calling: NetworkTestClient.performTest() called: Naming.lookup() args: rmi://nc_apps5.ncc.shs.com.sg:10000/RMITest
java.rmi.ConnectException: Connection refused to host: 10.224.10.122; nested exception is:
java.net.ConnectException: Connection refused
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)
If anything the second scenario should work, because both the server and the client are in the subnet i.e 10.224.x.x. but it turns to be the opposite. Can anyone
tell me what gives over here.
Many Thanks in advance
Henley from Singapore. National Cancer Center.

