views:

324

answers:

4

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

+1  A: 

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.

palehorse
Is that the same as port-forwarding port 443?
George Mic
That's another term it goes by, yes.
palehorse
+1  A: 

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:

  • Public IP number of your server, any RFC1918 numbers such as 192.168.X.X won't be accessible from the outside.
  • Name resolution; either through a officially registered DNS name or through a host file.
  • If there is a firewall in your router it must allow https (TCP/443) traffic.
  • If your server is on a private network and you want to access it through your router's official IP you will need port forwarding.
Anders Abel
Oh boy I knew it wasn't going to be easy. I'm not very familiar with stuff like that. What other alternatives do I have in order to setup a subversion server? Should I just look for a free host or something? It's only for personal stuff.
George Mic
Signing up to an existing service is almost always easier than seting up your own server...
Anders Abel
@George, if your project is opensource, then I'd consider Google Code Projects. You get a good SVN repo already setup. Course, your code all has to be open source though (as anyone can view it)
Earlz
@George: You could also register with one of the dynamical DNS services to have a DNS entry pointing to your home machine whenever it is online. Then all you need is to configure the router to let the https traffic pass. Alternatively, look at http://stackoverflow.com/questions/2058076/ and http://stackoverflow.com/questions/111292/ for SCM services.
sbi
A: 

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

  1. Configure the router to DMZ to your home computer (forward all ports, the least secure option)
  2. Configure the router to do a port-forwarding to your home computer to allow outside access
  3. Configure IPSec or some other VPN type technology. (out of my area of expertise)

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.

Earlz
A: 

what setting of VisualSVN Server need to be set if i do have a Public IP ? can anyone suggest also we are using the Public IP for a website hosted on that machine, and the port 443 is already taken by that. can we bind the SVN Server with any other port?

Vishal