You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Daniel Berlin <db...@dberlin.org> on 2005/06/01 02:40:03 UTC

Re: 1.2.0 svnserve only listens on ipv6 on openbsd

On Mon, 2005-05-23 at 15:12 -0700, Jim Morris wrote:
> Hi,
> 
> I have just built 1.2.0 on OpenBSD, and when I run svnserve it only 
> listens on the ipv6 network, and there is no listen port on ipv4.

Have you tried actually connecting to it with an ipv4 client and
verified that it can't?


> Is there a way to tell it to ignore ipv6? or at least have it listen on 
> both?
> 
> 

What do you have in /etc/hosts for localhost?

It looks up the host you specify as the hostname, and then uses the
address family that the name resolver gives it for that.

Thus, if you have 
127.0.0.1 localhost
::1  localhost


and your name resolver decides to use the ::1 address, it will end up
with an ipv6 name.  (Before someone suggests that we do something about
this, i'm not aware of a good way around this that doesn't break ipv6
support)

However, at least on my linux system, it actually listens on both

tcp        0      0 :::3690                 :::*
LISTEN

I can connect to this instance with both an ipv4 and ipv6 client, cutely
enough.

Anyway you can override the detection by explicitly specifying a listen
host that is an ipv4 address.

try adding 

--listen-host "127.0.0.1"

to the svnserve command line


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: 1.2.0 svnserve only listens on ipv6 on openbsd

Posted by Kay Abendroth <ab...@wsc-gmbh.de>.
Daniel Berlin wrote:
> On Mon, 2005-05-23 at 15:12 -0700, Jim Morris wrote:
> 
>>Hi,
>>
>>I have just built 1.2.0 on OpenBSD, and when I run svnserve it only 
>>listens on the ipv6 network, and there is no listen port on ipv4.
> 
> 
> Have you tried actually connecting to it with an ipv4 client and
> verified that it can't?

	YES!

>>Is there a way to tell it to ignore ipv6? or at least have it listen on 
>>both?
>>
>>
> 
> 
> What do you have in /etc/hosts for localhost?

	::1                     localhost.redhill.net localhost
	127.0.0.1               localhost.redhill.net localhost

[...]
> 
> Anyway you can override the detection by explicitly specifying a listen
> host that is an ipv4 address.
> 
> try adding 
> 
> --listen-host "127.0.0.1"
> 
> to the svnserve command line

	That's what I've done (--listen-host=0.0.0.0) and it works for me. But 
this is annoying for first time users!!!



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org