[jacorb-bugs] [Bug 1023] Use the computers local host address as 'preferred' (first) IORs address

bugzilla-daemon at jacorb.org bugzilla-daemon at jacorb.org
Fri Jan 29 08:28:46 CET 2016


http://www.jacorb.org/bugzilla/show_bug.cgi?id=1023

--- Comment #2 from Jens Vagts <jens at vagtsi.de> ---
Yes we and our customers are running windows.

I should have named this bug to our main problem with the local networks some
of our customers have in their laboratories instead describing a possible
solution, sorry. If you just change the ordering to prefer link local and
loopback finally we would be totally fine for this issue!

The idea to use the java.net.InetAddress.getLocalHost() as the 'preferred'
(first) address came into mind, because it delivers the same address than
'ipconfig /all' marks with the suffix '(Preferred)'.
This would solve issues were computers have multiple network adapters included
(e.g. a computer controlling a instrument connected to a dedicated device
network card). Jacorb than depends on the order of the configured network cards
within the system. InetAddress.getLocalHost() would point always to the
remote/domain network with the drawback to depend on the DNS lookup far as I
understand.

On our test system, having localy connected computers (three computers
configured with DHCP but connected to a switch without DHCP server), jaco
org.jacorb.util.Diagnostic" gives following output:
--------------------------------
JacORB Version: JacORB V3.7 (www.jacorb.org)
        (C) The JacORB project 1997-2015
        03 November 2015 with SHA b691766e

Operating system name: Windows Server 2012 R2
Operating system version: 6.3
Operating system architecture: amd64
Java Vendor: Oracle Corporation
Java Version: 1.8.0_72
Runtime max memory: 3632M

Found the following network addresses:
    /127.0.0.1 / 127.0.0.1
    /0:0:0:0:0:0:0:1 / hbeswprotein6
    /169.254.196.215 / hbeswprotein6
Preferred non-loopback address /127.0.0.1

Default locale en_US (which is English (United States))
System file encoding property: Cp1252
Cannonical encoding: Cp1252
Default WChar encoding: UTF16

Created ORB org.jacorb.orb.ORB
--------------------------------

On the same computer "java.net.InetAddress.getLocalHost()" points to
"169.254.196.215" which is the desired/correct address and is marked as
"(Preferred)" by ipconfig.

-- 
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/20160129/4257aa51/attachment.html>


More information about the jacorb-bugs mailing list