简体   繁体   English

无法连接到SVN服务器(SVNSERVE)

[英]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.

相关问题 无法在本地连接到 apache 服务器 - Cannot connect to apache server locally Mac:无法通过 Docker 连接到 SQL 服务器 - Mac: Cannot connect to SQL server through Docker 无法在OSX上使用Docker连接到X服务器 - Cannot connect to X server using docker on OSX MariaDB Python 中的连接器无法连接到远程服务器 - MariaDB connector in Python cannot connect to remote server 如何在Windows服务器上设置带有collabnet颠覆边缘的SVN服务器,以及如何在Mac上使用Xcode远程连接到它? - how to setup a SVN server with collabnet subversion edge on windows server, and how to connect to it remotely using Xcode on Mac? 无法连接到在客户机上运行的IM Server - Cannot Connect to IM Server Running on Guest Machine Xcode Server OTA安装:“无法连接到server.local” - Xcode Server OTA Install: “cannot connect to server.local” 无法在 OS X 上使用 docker 连接到 X 服务器 - 第二部分 - Cannot connect to X server using docker on OS X - Part II 设置MySQL根密码时无法连接到“本地主机”上的服务器 - Cannot Connect to Server at 'localhost' when Set the MySQL Root Password 无法连接到通过 brew 服务运行的 Postgres 服务器 - Cannot connect to Postgres server running through brew services
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM