invalid ip addr on hg serve

Mads Kiilerich mads at kiilerich.com
Fri Mar 28 04:34:03 CDT 2008


TK Soh wrote:
>>  and pointing Firefox at http://0.0.0.0:8000/ I get a "Unable to connect"
>>  on my WinXP.
>>     
>
> I am having this problem, too. 

Right, I was wrong, it seems to be platform dependent.

> On one hand, it gives the url with
> hostname, but the IP is 0.0.0.0, which does not correspond to the said
> hostname.
>
> It's just confusing.
>   

Yes, but that boils down to networking is confusing in general. Network 
interfaces have IP numbers, and IP numbers have DNS names. A machine has 
one hostname which might match one of the DNS names, but that can't be 
relied on. A hostname is really only what a machine calls itself, and it 
has nothing to do with the rest of the world. Listening on 0.0.0.0 
listens on all the IP numbers a host has, and in some way it is thus the 
closest you get to the "hostname".

> I think the [Mercurial] users should be the focus here. We can't
> expect every user to posses in-depth knowledge in networking. Simply
> saying 0.0.0.0 is a standard notation would be a cop-out.
>   

Agreed. But this isn't MS. Mercurial is a tool in the unix tradition. It 
is important have focus on users, but it is even more important to tell 
them the truth, let them know what is going on, and thus educate them. 
So I think that first telling exactly what is going on, and then giving 
the friendly almost-but-not-completely-reliable hint would satisfy all 
needs.

/Mads

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20080328/ace2acd1/attachment.htm 


More information about the Mercurial mailing list