• 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
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

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!

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic