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!

RMI Registry bind address

843793Sep 14 2003 — edited Dec 5 2004
I have a machine with multiple network interfaces; when I start the rmiregistry, it binds to the same interface each time (I don't know how it determines which interface). Is there a way of having it bind to a specified network adapter address ?

I have tried such things as:
- explicitly sending the desired bind address to Naming.rebind
e.g. Naming.rebind("rmi://MyOtherNetworkInterface/Object, obj);
however, this does not force the object to bind to the address "MyOtherNetworkInterface".
- I have explored the (very minimal) options that can be passed to the RMI registry on start up.
- My next best guess is that there is a setting at the operating system level. I don't know enough about the Win32 API (as I am on Windows 2000) to determine whether or not you can specify which interface to bind a listening socket to.

Any suggestions, solutions, etc. are most appreciated
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 2 2005
Added on Sep 14 2003
5 comments
3,866 views