InetAddress.getLocalHost() always returns "localhost"

XMLWordPrintable

    • sparc
    • solaris_2.5.1


      This happens in JDK 1.1.1 and JDK 1.1.2
      Works OK in JDK 1.1

      ======================================================================
      Another user reports:

      Synopsis: InetAddress.getLocalHost() returns "localhost/127.0.0.1"

      Description:
      This bug is found in JDK1.1.1 and JDK1.1.2 in STANDALONE apps:

      InetAddress.getLocalHost() returns "localhost/127.0.0.1" although
      the machine is registerd at the DNS and has a fixed IP (not modem
      connected). The problem occures only under Solaris 2.4. On
      2.5 all the method fine. This problem does NOT occur under JDK1.1.0
      and Solaris 2.4.

      antonio.rua@Swiss 1997-07-28:

      Similar symptom also seen with JDK 1.1.3 on a SC2000E running Solaris 2.5.1.

      When running same applet on other machines, everything works allright, the
      problem appears only on the above mentionned machine...

            Assignee:
            Benjamin Renaud (Inactive)
            Reporter:
            Mark Chamness (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: