• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

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

Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!

machines help you to do more, but experience less. Experience this tiny ad:
a bit of art, as a gift, that will fit in a stocking
    Bookmark Topic Watch Topic
  • New Topic