We're using Subversion for source control, hosted on a machine behind a router, using port forwarding. On the local network everything seems OK. But when we connect to SVN from a remote computer using a SVN client (AnkhSVN or RedGate SQL Source Control in our case), the connection is extremely flaky. Sometimes (maybe 20% of the time) it works, but most of the time it fails, saying:
SharpSvn.SvnRepositoryIOException: Unable to connect to a repository at URL 'http://mysite.com:8085/svn/myproj/blahblah' ---> SharpSvn.SvnRepositoryIOException: OPTIONS of 'http://mysite.com:8085/svn/myproj/blahblah': could not connect to server (http://mysite.com:8085)
--- End of inner exception stack trace ---
at SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, SvnException error, Object targets)
at SharpSvn.SvnClientArgs.HandleResult(SvnClientContext client, svn_error_t* error, Object targets)
at SharpSvn.SvnClient.Update(ICollection`1 paths, SvnUpdateArgs args, SvnUpdateResult& result)
at SharpSvn.SvnClient.Update(String path, SvnUpdateArgs args, SvnUpdateResult& result)
at Ankh.Commands.SolutionUpdateCommand.PerformUpdate(CommandEventArgs e, ProgressWorkerArgs wa, SvnRevision rev, Boolean allowUnversionedObstructions, Boolean updateExternals, Boolean setDepthInfinity, IEnumerable`1 groups, SvnUpdateResult& updateResult)
at Ankh.Commands.SolutionUpdateCommand.<>c_DisplayClass9.b_6(Object sender, ProgressWorkerArgs a)
at Ankh.ProgressRunnerService.ProgressRunner.Run(Object arg)
The port is clearly open and not being blocked by any firewall, and port forwarding is working, otherwise it would fail 100% of the time. And opening that URL in a browser behaves similarly - sometimes it works, and sometimes it fails.
Any ideas what's wrong, or how to fix?