[jacorb-bugs] [Bug 1023] New: Use the computers local host address as 'preferred' (first) IORs address
bugzilla-daemon at jacorb.org
bugzilla-daemon at jacorb.org
Tue Jan 26 14:05:12 CET 2016
http://www.jacorb.org/bugzilla/show_bug.cgi?id=1023
Bug ID: 1023
Summary: Use the computers local host address as 'preferred'
(first) IORs address
Product: JacORB
Version: 3.6.1
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: ORB
Assignee: jacorb-bugs at lists.spline.inf.fu-berlin.de
Reporter: jens at vagtsi.de
As of jacorb 3.7, the identification of the local hosts address used or for the
IORs is done by some ordering of all found network addresses in
org.jacorb.orb.iiop.IIOPAddress.getNetworkInetAddresses() and returning just
the first one in org.jacorb.orb.iiop.IIOPAddress.getLocalHost().
So the order of network interfaces and addresses defined in the system is
important for the local (remote) address to be used for the service references.
I suggest to use the local host address returned via
java.net.InetAddress.getLocalHost() to be used as a kind as 'preferred' (first)
service address in the getNetworkInetAddresses() sort order.
This would solve even a special minor issue we have have with 'local networks':
some computers connected to a private network without a domain controller to a
network hub and 'auto configured' (DHCP) will get a link local address
(169.254.x.x, see https://en.wikipedia.org/wiki/Link-local_address). Currently
jacorb binds the services to loppback address, since it's ordered before the
link local address (on windows 7 computers). InetAddress.getLocalHost()
returnes the link local address here.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spline.inf.fu-berlin.de/pipermail/jacorb-bugs/attachments/20160126/d3fd31af/attachment.html>
More information about the jacorb-bugs
mailing list