[Zope3-dev] Zope not accepting connections on Windows

Garrett Smith garrett at mojave-corp.com
Sun Mar 13 12:17:48 EST 2005


The problem is caused way back in the ZConfig inet address datatype,
which makes 'localhost' the default host value on Windows.

I'm sure there's a good reason for this.

But it causes the server forgo its lookup of the machine's actual host
name on startup. The server is bound to localhost:port and refuses
connections from non-local clients.

Assuming the default host value for windows needs to be 'localhost', we
probably need to hard-code some Windows-specific logic in the server
name lookup to treat 'localhost' as a special value actually meaning ''
(empty string).

Fred, if you're around, could you lend a guiding hand?

 -- Garrett

Garrett Smith wrote:
> Marc Rijken wrote:
>> Garrett Smith wrote:
>>> This is a strange problem. I can only connect to a Zope 3 server as
>>> localhost. When I access the server from another machine, no
>>> connection. 
>>> 
>>> I can connect to an apache server without any problem.
>>> 
>>> I don't see this problem on Linux.
>>> 
>>> Anyone have a clue as to what's going on?
>>> 
>>>  -- Garrett
>>> _______________________________________________
>>> Zope3-dev mailing list
>>> Zope3-dev at zope.org
>>> Unsub:
>>> http://mail.zope.org/mailman/options/zope3-dev/marc%40rijken.org
>>> 
>> 
>> I have had the same problem on my Win XP Zope X3 instance. It was
>> solved at the moment when I connect Zope 3 to the external IP address
>> of my computer in zope.conf.in. The server part of my zope.conf.in
>> lookes like: 
>> 
>> <server>
>>    type HTTP
>>    address 192.168.2.199:8080
>> </server>
> 
> Great insight Marc! This does the trick.
> 
>> Previously it worked without connecting the server "by hand" to the
>> zope 3 instance; it took automatically all IP-addresses of my
>> computer (localhost and 192.168.2.199).
> 
> Yep, this bug is relatively new (within the last 12 mos ;). I'll add a
> collector issue.
> 
> Thanks!
> 
>  -- Garrett
> _______________________________________________
> Zope3-dev mailing list
> Zope3-dev at zope.org
> Unsub:
>
http://mail.zope.org/mailman/options/zope3-dev/garrett%40mojave-corp.com



More information about the Zope3-dev mailing list