Sounds to me like you need to have your DHCP Server reserve that IP address
for "box". That way everyone knows what IP address it will be assigned and
will make everything easier. This is simply done by associating the MAC
address of "box" with the IP address...
On Wed, Jun 06, 2007 at 01:41:30PM -0400, Sam wrote:
> > Date: Sat, May 26, 2007 at 11:26:24AM +0000
> > Subject: [Resin-interest] Resin 3.1.1 httpd is failing to bind to "*"
> > Hi,
> > I'm trying out Resin 3.1.1 (Open Source) on a Damn Small Linux system
> > (DSL 3.3, with default hostname "box") configured as a DHCP client.
> > When my /etc/hosts file contains the line
> > 192.168.0.15 box
> > (where 192.168.0.15 is the address handed out by the DHCP server),
> > everything works as expected (in resin.conf, I have <http address="*"
> > port="80"/>). However, if I comment out that line in /etc/hosts [so
> > that gethostbymame() or InetAddress.getLocalHost() would fail], Resin
> > fails to bind to the address, despite specifying "*". The watchdog
> > stops Resin because of a socket accept timeout. Is this a known
> > problem, or am I doing something wrong? I don't believe anything is
> > wrong with the rest of the config - my unit tests
> > work fine with that /etc/hosts line left uncommented.
> > Clearly, I can't have the line in /etc/hosts in a deployment (I mean
> > non-development) environment, since on the next DHCP lease renewal,
> > the DHCP server might dole out a different address.
> Do you have a line like this in /etc/hosts?
> 127.0.0.1 localhost
> -- Sam
> resin-interest mailing list
resin-interest mailing list