如何远程访问 Subversion 服务器
我昨天刚刚在我的家用计算机上安装了 VisualSVN 服务器,我可以在本地主机上正常访问我的存储库,但是当我尝试远程访问它时,它无法连接。我应该配置其他东西还是不可能?
我使用 https://servername/svn 作为浏览器中的 URL,并且家庭计算机位于路由器后面。这仅供个人使用。
谢谢
I just installed VisualSVN server yesterday at my home computer and I can access my repositories ok at localhost but when I try to access it remotely, it won't connect. Am I supposed to configure something else or is it not possible?
I'm using https://servername/svn as the URL in my browser and the home computer is behind a router. This is only for personal use.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您确定您不在家时可以正常使用
servername
名称解析吗?要进行远程访问,您至少需要:Are you sure that you have working name resolution for
servername
when not at home? For remote access to work you will at least require:默认情况下,您的路由器可能不允许端口 443 (SSL) 上的流量通过。您可能必须制定规则才能实现这一点。许多路由器将此称为“DMZ”或类似的设置。基本思想是允许该一个端口上的流量到达受保护网络内的一台特定计算机。
Your router likely does not allow traffic through on port 443 (SSL) by default. You may have to set up a rule to let that happen. Many routers call this setting up a DMZ or something similar. The basic idea is to allow traffic on that one port to one specific computer inside your protected network.
你说的远程是什么意思?远程如在同一 LAN 中或远程如通过互联网。
首先,确保家庭计算机上的防火墙不会阻止外部对 Subversion 的访问。
如果在同一个局域网上仍然有问题,那么我不知道。
对于 WAN,您有 3 个选项
一旦您转发了端口或进行了任何配置,那么您如何访问您的家庭计算机?您无法通过互联网使用 192.168.*。您必须获取公共 IP 地址并使用它进行连接(我推荐 http://ipchicken.com )。如果您的公共 IP 地址是动态的,那么您将需要获取动态 IP 地址服务,例如 http://no-ip .com 这样您就可以获得一个始终指向您家庭计算机的免费域名,然后您只需使用该域名而不是使用您的家庭 IP 地址,它就始终有效。
What do you mean by remote? Remote as in on the same LAN or remote as in across the internet.
First off, make sure your firewall on the home computer isn't blocking outside access to subversion.
If you still have problems on the same LAN, then I dont know.
For WAN, you have 3 options
Once you have the ports forwarded or whatever configured, then how are you accessing your home computer? You can not use 192.168.* across the internet. You must get your public IP address and connect using it(I recommend http://ipchicken.com ). If your public IP address is dynamic, then you will need to get a dynamic IP address service such as http://no-ip.com so that you can get a free domain name that will always point at your home computer, and then you just use that domain name instead of using your home IP address and it will always work.