Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Mar 2004 00:38:48 -0700
From:      Dale Hagglund <rdh@yottayotta.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: change in semantics of socket(PF_INET, SOCK_STREAM, 0)?
Message-ID:  <lm4qsytqpj.fsf@dernhelm.edmonton.yottayotta.com>
In-Reply-To: <86smgizfyz.fsf@ponoka.ed.shawcable.net> (Dale Hagglund's message of "Mon, 08 Mar 2004 23:34:12 -0700")
References:  <86smgizfyz.fsf@ponoka.ed.shawcable.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Dale Hagglund <rdh@yottayotta.com> writes:

> I upgraded from 4.8 to 4.9 and my install of net/vnc couldn't connect
> to a remote server any more.  The connection is via an ssh tunnel, but
> I don't think that's relevant.  

Famous last words.

ssh binds its tunnel port explicitly to 127.0.0.1.  vncviewer, when
given an empty host name, uses an ipaddress of 0.0.0.0 which doesn't
match this.  Running vncviewer as

        $ vncviewer localhost:1

instead of

        $ vncviewer :1

works fine.

This could be considered a bug in vncviewer, although I'm not really
sure of that.  

The only (very minor) remining issue is that the ip(4) man page seems
to be incorrect: _proto_ of zero does not give a raw socket.  I
downloaded vncviewer source, and then changed the socket calls to
explicitly use IPPROTO_TCP, and the behaviour was the same.

Sorry for the confusion.

Dale.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?lm4qsytqpj.fsf>