I have been using the svn server built by visual SVN for a long time. Since everyone works in an intranet, they can access the server directly by using the PC name or fixed IP address.CodeLibrary. Today, if you want to allow your colleagues to access the version library of the company's intranet server at home or outside, you need to modify the configuration.
Because the Office uses routers to access the Internet, the public IP address will change constantly, So I first thought of a peanut shell, through dynamic domain name resolution (ddns) to bind the domain name to the dynamic IP address of the router, you can ensure that the Internet can access my machine, but you still need to make some configuration on the router. Here we take the TP-link router as an example to open HTTP in the browser: // 192.168.1.1 logon configuration page:
- Set static IP
Select DHCP server-> static address allocation, and assign static IP addresses to machines in the intranet;
- Set port forwarding
Select forwarding rules-> virtual server, and forward the Internet access to port 443 to the IP address of the machine where the svn Server service is installed. If port 80 is set here, then your web server will be visible to the outside world;
- Configure Dynamic DNS
Most routers provide dynamic dns support. My routers support two ddns service providers, namely www.oray.net and www.comexe.com, enter the user name and password you have registered at the service provider. After Successful Logon, the domain name you have bound will be displayed.
After completing the preceding three steps, enter the svn server address in the browser, for example, https://xxxx.gicp.net/svn. Then you can use the tortoisesvn client to check out the code on the Internet!