[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Can't access repo using http:// or svn://

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Thu, 28 Aug 2008 10:18:04 +0200

SomeRandomDude wrote:
> Now I tried it from scratch with svnserve (with Apache and old repo
> removed).
>
> Here is what I did step-by-step (I am running Vista Business with SP1)
>
> 1. Installed CollabNet Subversion 1.5.1 (In the installer config I
> specified D:\SVN as the defaul repo directory and left the port at its
> default value of 3690).
> 2. Disabled the Windows Firewall
> 3. Launched using svnserve.exe --daemon --root D:\SVN
> 4. In svnserve.conf I put:
> [general]
> anon-access = none
> auth-access = write
> password-db = passwd
> 4. In passwd I put:
> [users]
> test = test
> 5. On my router I forwarded port 3690 (TCP) to the machine IP on which
> svnserve is running.
>
> End result: svn:// works with "localhost", but using an external IP I
> get this in the repo browser:
>
> "Can't connect to host 'IP OF THE MACHINE': No connection could be
> made because the target machine actively refused it."

You have to bind svnserve to an ip address. It defaults to 'localhost':

svnserve.exe --daemon --root D:\SVN --listen-host <ip-of-host>

If you don't specify --listen-host, it will bind to localhost and refuse
connections to the real ip (localhost has ip 127.0.0.1).

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net

Received on 2008-08-28 10:18:37 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.