svndnsdynamic-ip

Hosting SVN Server on my PC to access remotely


I'm trying to connect to my SVN server (installed on my local PC) from a remote machine. After going through some SO questions and other guides, I have done the following steps:

  1. SVN Server is installed on top of Apache server using HTTP protocol. I can access it by typing http://localhost/svn in my browser and in TortoiseSVN.

  2. I have setup a DNS entry using free DNS service providers against my dynamic IP.

  3. I can now type http://MyFreeDNSName.FreeDNSServer.com in a remote machine and that takes me to my machine.

The problem however is that this address opens the router's default page instead of the SVN page. This is the same page that I can access on the local machine by typing 192.168.1.1. So my question is, how can I configure my machine to pass the incoming request to SVN page instead?


Solution

  • You will have to set up port forwarding on your router to point to your PC. Forward port 80 to the local IP address of your PC. Exactly how to do this will depend on your router model. It might also help to give your PC a static IP address.