invalid ip addr on hg serve
p.f.moore at gmail.com
Thu Mar 27 06:48:12 CDT 2008
On 27/03/2008, TK Soh <teekaysoh at gmail.com> wrote:
> What does 'all interfaces' refer to? Sorry I am not familiar with the concept.
If your machine has multiple network cards or IP addresses (for
example, 'localhost'=127.0.0.1 and the IP address assigned by your
ISP) then having hg serve listen on all interfaces means that people
can get to it regardless of what IP address they use to talk to your
If you have a PC on an internal network, where the PC is also
connected to the internet, you might well want only internal users to
be able to connect to your hg server. In that case, 0.0.0.0 is a bad
choice, and you would specify your internal IP address, so that
internet users couldn't connect.
Using 0.0.0.0 simply means that anyone who can get to your PC can also
get to the hg server, which is a reasonable, permissive default.
Hope that helps,
More information about the Mercurial