2

I've set up using many tutorials from the web a repository and svnserve on my mac.

But I cannot access it from the internet.

If I call the following command everything works alright:

svn co svn://192.168.1.10 /working_copy/myproject --username me

And If I call the following:

svn co svn://my_external_ip /working_copy/myproject --username me

I get a error: Can't connect to host 'my_external_ip': Connection refused

Of course instead of my_external_ip I type in my external ip address that I got from whatismyip.com

I've set up port forwarding on my router for port 3690 to my local ip - 192.168.1.10

svnserve is running. I launched it with:

svnserve -d

I tried to check if port 3690 is open using http://www.canyouseeme.org/ and it says that the port is open.

What may be the problem? I'm trying to figure it out for the whole day and can't find the cause.

Thank you in advance.

2
  • This sounds like a networking question, not a programming question. Commented Jan 23, 2010 at 22:28
  • Are you 100% sure SVN is listening on port 3690? Can you check using netstat when you connect locally? Commented Jan 23, 2010 at 22:31

1 Answer 1

6

Where are you when you try the "svn co svn://my_external_ip" command? Chances are that won't work when you're still on your own LAN - cheap NAT routers typically do not forward traffic directed at the public IP coming from the LAN. While you're on your own LAN, you'll need to use the internal IP.

Sign up to request clarification or add additional context in comments.

1 Comment

Oh my god! Thank you very much, it's finally working! Many thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.