views:

267

answers:

2

I am trying to follow the instructions posted here but am getting stuck at step 3. After setting up my local workstation to serve the Repository; I cannot clone it from my server. When I run the following command

hg clone http://COMPUTER-XXXXX.hsd1.va.comcast.net:8000/

I receive

abort: error: getaddrinfo failed

What am I missing? I am running TortoiseHg on my Windows XP laptop and a Server 2008 set up on a VM. Thanks.

+1  A: 

Are you sure your server is able to reach the work station by name? Try this on the command line:

ping COMPUTER-XXXXX.hsd1.va.comcast.net

It looks like the DNS lookup is failing, but that's just a guess.

Perhaps try cloning by IP?

hg clone http://192.168.1.134:8000

or whatever the IP of your desktop is?

(also there's no trailing period after your clone command, right?)

Ry4an
I can ping my machine both by ip and name (I also renamed it to a simpler machine name).Cloning by IP doesn't do the trick either.
amadib
Are you running windows firewall on your desktop machine? If so, you'll have to open up port 8000.
Ry4an
+1  A: 

Reading this issue: http://mercurial.selenic.com/bts/issue535 it seems that other people had problems with their http proxy settings on windows. Could you try editing the proxy settings in IE and set "direct connect to the internet" (or something like that) instead, to see if this works around your problem ? Then as someone suggested it might be a firewall problem: you might want to try to "telnet < machine > 8000" to see if the port is blocked somewhere or not (but the error messages looks more like a name resolution problem..).

Hope it'll help.

Cheers,
Christophe.

= Any sufficiently advanced technology is indistinguishable from magic. -- Arthur C. Clarke (Clarke's third law) =

Christophe Muller
Turns out work had an extra firewall layer blocking the port. Thanks for your help.
amadib

related questions