| Author |
Problems with Java RMI when having multiple IPs (private IP and public IP)
|
chaohua wang
Ranch Hand
Joined: Dec 22, 2002
Posts: 62
|
|
Hi Folks,
I have a RMI client, needs to add private IP adapter for cluster purpose. it communicates with RMI server at different machine.
IP config is this:
169.254.31.28 is a private IP. 16.124.133.168 is public IP.
Before I added this private IP. RMI client and Server communicate all right.
But After i added this private IP.
my client filed on a method call: servicesRef.getPaciVersions();
I debugged servicesRef object. its host is this private IP address (169.254.31.28). Before it was public IP,
so this call threw a IO exception.
I am not sure only why this host only has this private IP, no public IP. After I removed this private adapter, host has public IP.
my server RMI side. the code like this:
not sure why paciVesionService contains only private IP address. my code seems not do it.
Please help.
Thank you!
Chwang
|
 |
 |
|
|
subject: Problems with Java RMI when having multiple IPs (private IP and public IP)
|
|
|