[how can I pull from hg serve?]

František Kučera konference at frantovo.cz
Sun Feb 26 14:32:05 UTC 2023


Dne 26. 02. 23 v 11:13 Uwe Brauer napsal(a):
>> 2. How can I change the setting to have the my IP number instead the
>>         name of my machine?
> That one is still mysterious to me.

When I run hg serve, it prints:

     listening at http://my-hostname:8000/ (bound to *:8000)

and it really listens on any IP address:

     $ ss -tlpn | grep hg
     LISTEN 0      5            0.0.0.0:8000       0.0.0.0:* users:(("hg",pid=9562,fd=3))

So if you have the public IP address assigned to the computer that runs hg serve, you can clone/pull from that address regardless hg serve told you "listening at http://my-hostname:8000/".

I would rather expect issues with firewalls or NATs than with Mercurial itself.

Franta



More information about the Mercurial mailing list