<html>
    <head>
      <base href="http://www.jacorb.org/bugzilla/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Use the computers local host address as 'preferred' (first) IORs address"
   href="http://www.jacorb.org/bugzilla/show_bug.cgi?id=1023">1023</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Use the computers local host address as 'preferred' (first) IORs address
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>JacORB
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.6.1
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>ORB
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>jacorb-bugs@lists.spline.inf.fu-berlin.de
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jens@vagtsi.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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 <a href="https://en.wikipedia.org/wiki/Link-local_address">https://en.wikipedia.org/wiki/Link-local_address</a>). 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.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>