Skip to Main Content

Java APIs

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Multi ip address problem,please help me

843793Dec 13 2004 — edited Dec 16 2004
I never understand the processes how rmi client connect to rmi server, when rmi server hosted on multiple ip addresses machine, and the registry created by LocateRegistry.createRegistry(1099) will listen to which ip address if the host has multiple ip addresses?Can java.rmi.server.hostname property have the same effect on both rmiregisty and rmi server?

For example ,the rmi server machine has two ip addresses , one is 192.168.100.33 and another is 192.168.100.34, the rmi client can ping successfully through either ip address. When the rmi server is started by set java.rmi.server.hostname=192.168.100.34,originally i think the client can't access the rmi server throught 192.168.100.33 but the fact is opposition.

What i want to do is that the rmi client can only through the desinating ip address to access the rmi server, can anyone give me some advice.

Thanks a lot

Liuyan
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 13 2005
Added on Dec 13 2004
17 comments
454 views