On my box using java version "Sergey_Nikitin:12/21/97-23:13" and
glibc2 ( /lib/libc-2.0.5.so) the java.net.InetAddress.getLocalHost()
returns the name configured by the "hostname xxxx" command. Which also
is looked up for the IP address in the /etc/hosts file (not sure if it
uses DNS or not), but, if you have a valid ip associated with the
hostname, then all is well.
Take a look at hostname output and /etc/hosts and verify it is the right
ip address for your network.
My 2 cents...
Later,
Dave
--
+------------------------------------------------------------+
| David Lucas mailto:[EMAIL PROTECTED] |
| Software Engineer |
| C++,Unix,Client/Server,Zinc,Java |
+------------------------------------------------------------+
| GPS Location: 40 deg 00' 51" N, 82 deg 38' 11" W |
| IMHC: "Jesus Christ is the way, the truth, and the life." |
| IMHC: "I know where I am; I know where I'm going." |
+------------------------------------------------------------+
Notes:
IMHO: in my humble opinion IMHC: in my humble conviction
PGP Key Block: finger [EMAIL PROTECTED]
All trademarks above are those of their respective owners.