Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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://10.0.0.5 where 1.0.0.5 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 stackoverflow.com Jan 28 '11 at 13:51

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

1  
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
2  
I suggest moving this question to superuser.com - 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
1  
A VPN might be another option that could work for you. –  Russ Hayward Jan 28 '11 at 13:42
1  
@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
2  
@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
show 4 more comments

3 Answers

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 svn.yourcompanyname.org 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 svn.yourcompanyname.org

share|improve this answer
add comment

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
add comment

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 10.0.0.5 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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.