Hello everyone,

    Im just switched over to 1.2 in linux (nice work!).  Im facing one
problem. i dunno if it is a bug or correction in new release.

    Using 1.1.7, the static method 'InetAddress.getLocalHost()' returns
the local machine address.

    But the same in 1.2 returns some other differenet address. (
'localhost/127.0.0.1' . This is given in /etc/hosts for loopbacking!).

     try {
         System.out.println( "Local Host : " +
InetAddress.getLocalHost() );
      }
      catch( UnknownHostException exe) {}

    this, prints msbabu/x.x.x.x (where x.x.x.x is my machine's IP
address) with 1.1.7

and prints localhost/y.y.y.y in 1.2

    Anybody knows why this occurs?.

TIA.

Cheers,

Suresh


----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to