Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a lan network in our office and had created a svn repository on one of the computer and we access that repository through the url svn:// where is the ip address of that computer. Now i want to access this repository through internet. So what will be my url as we get dynamic ip address through isp. And all computers are behind routers so how to access this

share|improve this question

migrated from Jan 28 '11 at 13:51

This question came from our site for professional and enthusiast programmers.

You'll need to publish the server through your firewall. What firewall / router are you using? Also I'm not 100% sure there's any encryption of passwords etc. on plain svn:// URLs so you might want to use ssh+svn remotely, so publish a locked-down ssh instead. – Rup Jan 28 '11 at 13:39
I suggest moving this question to - but I can tell you that you've got a large work in front of you - and much knowledge to gain. – KevinDTimm Jan 28 '11 at 13:40
A VPN might be another option that could work for you. – Russ Hayward Jan 28 '11 at 13:42
@Russ makes a good point - who's going to access this? Your own users remotely, a third-party who don't have permissions to your network, or the public in general? – Rup Jan 28 '11 at 13:46
@jimy: is requesting a static IP from your ISP out of the question? Seems obvious, but most offer it as a feature now. – Doug Chamberlain Jan 28 '11 at 13:48
up vote 7 down vote accepted

poke the server through the firewall as others have suggested, then use a service such as dyndns to update a dns record with your dynamic ip address as it changes. Then you can always reference the machine from the dns entry.

So, you set up with dyndns, you install their app on your svn server, so it updates dyndns with it's current external ip address, and then you always reference your svn repository by connecting to

share|improve this answer

Short answer is that you can't.

Longer answer is, to reliably access your repository you'd first need a static IP address from your provider. After you have the static IP you'd then need to configure your router and firewall to forward traffic to that IP that is destined for the port you have set up SVN on to forward to your SVN server.

share|improve this answer
Dyndns exists. A static IP is not needed for that. Only your description on the firewall/port forwarding is correct. – Robert Jan 28 '11 at 13:47

You need some form of stable name. DynDNS or one of the many others providing dynamic DNS would suffice. Still, Rup is of course right: You can't use from outside your office network, since it is a non-routable address. Your firewall needs to get port forwarding and then you need to point clients at the firewall.

Just note the obvious security problems with opening holes in your firewall, mke sure the svn server is in the DMZ (and if you don't currently have one, quite seriously, either drop the idea or get the network admin to create one – if they really consider port forwarding into your regular network office, get a new network admin).

Now, if all you really want to achieve is to give your own developers access from home or from their laptops, then VPN is what you should do.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .