RMI Registry bind address
843793Sep 14 2003 — edited Dec 5 2004I 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