• Post Reply Bookmark Topic Watch Topic
  • New Topic

Problems with Java RMI when having multiple IPs (private IP and public IP)  RSS feed

chaohua wang
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: is a private IP. 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 ( 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!

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!