Hello:
I have this situation: in my local network I have several machines in NT,
Solaris and Linux.  My java application is running well in all the platforms
including Linux.  One of the Linux machines, however, is reporting the local
address instead of the ip address when I do:

                InetAddress.getLocalHost();

For the rest of the machines I get the real ip address ie. 192.#.#.96,
however, for this Linux machine I get 127.0.0.1 which is the local address.
Looking at the host file in the linux machines, we have some differences
which may be causing this problem, but this file is suppose to be edited by
the user.

Is it there any way to get the true ip address of a Linux machine regardless
the explicit configuration placed on the host file?

Thanks
Francisco.




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

Reply via email to