Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

After many hours of work I made SVN server run on my mac os using Apache and anyone from the local network can access the repository.

But I can't figure out, how to make it accessible remotely from the internet?

When I type in my address bar "localhost/svn" my repository is being shown.

But when I type in my_ip/svn, browser can't connect to the server.

I've set up port forwarding on my router for port 3690 to my local ip, but nothing happens.

How can I make accessible my repository from the internet?

Thanks.

share|improve this question

migrated from stackoverflow.com Jan 25 '10 at 18:55

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

    
The svnserve daemon (used when a repository is accessed through the native SVN network protocol svn://) usually listens on port 3690. Apache on the other hand usually listens on port 80 and eventually 443. –  Milen A. Radev Jan 23 '10 at 13:44

3 Answers 3

Just a quick question, are you sure you want to make it accessible through the Web? You can make your SVN accessible through ssh using port 22. Install and start an ssh server on your Mac and you can access your SVN with the following:

svn co svn+ssh://your.remote-server.com/home/svn/test
share|improve this answer
    
Can you please provide me with more information on configuring SSH on mac? –  Ilya Jan 23 '10 at 16:04

Since you are accessing SVN through Apache, you will need to forward port 80 on your router.

share|improve this answer
    
Will in this case all web content be forwarded to my computer? There are multiple computers in the local network. –  Ilya Jan 23 '10 at 16:04
    
If anyone accesses your external IP address on port 80, it will be forwarded to your computer. –  Trevor Jan 24 '10 at 13:53

I am guessing at your situation my guesses are:

1) Your router has an ip say: 80.1.1.5 2) Internally you have an ip say: 192.168.0.5

You have port forwarded port 3690 to 192.168.0.5 on your router.

What you need to do then is externally use your external ip rather than your internal ip address.

If I am guessing wrong at what you have setup give a bit more info.

share|improve this answer

Your Answer

 
discard

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