[英]Cannot connect to svn server (svnserve)
I've set up using many tutorials from the web a repository and svnserve on my mac. 我已经使用网上的许多教程在Mac上建立了存储库和svnserve。
But I cannot access it from the internet. 但是我无法从互联网上访问它。
If I call the following command everything works alright: 如果我调用以下命令,则一切正常:
svn co svn://192.168.1.10 /working_copy/myproject --username me
And If I call the following: 如果我打以下电话:
svn co svn://my_external_ip /working_copy/myproject --username me
I get a error: Can't connect to host 'my_external_ip': Connection refused 我收到一个错误:无法连接到主机“ my_external_ip”:连接被拒绝
Of course instead of my_external_ip I type in my external ip address that I got from whatismyip.com 当然,我输入的是我从whatismyip.com获得的外部IP地址,而不是my_external_ip。
I've set up port forwarding on my router for port 3690 to my local ip - 192.168.1.10 我已经在路由器上将端口3690的端口转发设置为本地ip-192.168.1.10
svnserve is running. svnserve正在运行。 I launched it with:
我用以下方法启动了它:
svnserve -d
I tried to check if port 3690 is open using http://www.canyouseeme.org/ and it says that the port is open. 我尝试使用http://www.canyouseeme.org/检查端口3690是否已打开,并说该端口已打开。
What may be the problem? 可能是什么问题? I'm trying to figure it out for the whole day and can't find the cause.
我想整天弄清楚,但找不到原因。
Thank you in advance. 先感谢您。
Where are you when you try the "svn co svn://my_external_ip" command? 尝试使用“ svn co svn:// my_external_ip”命令时,您在哪里? Chances are that won't work when you're still on your own LAN - cheap NAT routers typically do not forward traffic directed at the public IP coming from the LAN.
当您仍在自己的LAN上时,这些机会将不起作用-廉价的NAT路由器通常不会转发定向到来自LAN的公共IP的流量。 While you're on your own LAN, you'll need to use the internal IP.
当您位于自己的LAN上时,需要使用内部IP。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.