• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • 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:


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
 
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
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic