Re: InetAddress.getLocalHost() problems with Debian Linux

2001-04-19 Thread David Brownell
> > So my question is: is it wrong for the localhost entry in /etc/hosts to > > contain the machine name? [...] > > Yes, it's wrong, but it is commonly done on windows and on unix machines > in the initial installation steps. It should not be left that way > unless the machine has no network in

Re: InetAddress.getLocalHost() problems with Debian Linux

2001-04-19 Thread Joi Ellis
On Thu, 19 Apr 2001, pdw wrote: > So my question is: is it wrong for the localhost entry in /etc/hosts to > contain the machine name? If not, getLocalHost() is broken. Yes, it's wrong, but it is commonly done on windows and on unix machines in the initial installation steps. It should not be l

Re: InetAddress.getLocalHost() problems with Debian Linux

2001-04-19 Thread Jesse Erdmann
I think that the following the following should help sorting some of these issues out. There are a variety of issues related to the way the InetAddress object works. I personally was having a problem getting all IPs for a multi-homed node, but I think that this also addresses the issue that you'

InetAddress.getLocalHost() problems with Debian Linux

2001-04-19 Thread pdw
InetAddress.getLocalHost() is supposed to return the ip address of the local host. But on my machine (Debian Linux, Blackdown 1.3, using DHCP) it returns 127.0.0.1. This makes sense, sort of, because 127.0.0.1 is a valid address for this machine. but it is useless. Here is the interesting thin