invalid ip addr on hg serve
TK Soh
teekaysoh at gmail.com
Thu Mar 27 23:31:51 CDT 2008
On Fri, Mar 28, 2008 at 1:00 AM, Adrian Buehlmann <adrian at cadifra.com> wrote:
> On 28.03.2008 01:15, Mads Kiilerich wrote:
> > Adrian Buehlmann wrote, On 03/27/2008 07:14 PM:
> >> But with (A)
> >>
> >> $ hgd serve -v
> >> listening at http://snoopy:8000/ (*:8000)
> >>
> >> maybe someone will ask then what the star means :-)?
> >>
> >> Some more ideas:
> >>
> >> (B) listening at http://snoopy:8000/ (address *:8000)
> >>
> >> (C) listening on address *:8000 (http://snoopy:8000/)
> >>
> >
> > Mercurial knows that it is listening precisely at 0.0.0.0:8000, and from
> > the local host the repository can be accessed at http://0.0.0.0:8000/,
> > so that address / URL should be the first to mention.
>
> When doing
>
> > hg serve -v
> listening at http://snoopy:8000/ (0.0.0.0:8000)
>
> 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. 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.
> Did you mean "the repository can be accessed at http://127.0.0.1:8000/" ?
>
> I'd prefer (C) or something too. Maybe:
>
> (D) listening on address *:8000 (try http://localhost:8000/)
> ^^^
> "try" as a hint that we don't intend to list all possible DNS's.
>
> I can't comment on the code issues you mention, as I'm not qualified
> on network programming.
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.
More information about the Mercurial
mailing list