Subject: Re: Xlib: Client is not authorized to connect to Server
To: Jeffrey Ohlmann <jaohlma@BGNet.bgsu.edu>
From: Xiamin Raahauge <xiamin@scdesantis.ne.mediaone.net>
List: port-mac68k
Date: 12/06/1997 13:17:20
On Sat, 6 Dec 1997, Jeffrey Ohlmann wrote:
> I am a little vague on X terminology so please bear with my attempts to
> describe what I'm doing, and _do_ correct me where I'm wrong ...
> 
> I am trying to run Netscape off of a remote host to display on my NetBSD
> machine.  I have X-windows working locally; i.e., I can use Mosaic, xterm,
> and so on, without trouble.  I can also view netscape on the MacOS side by
> using MI/X.
> 
> At the remote host, I use
> 	setenv DISPLAY 129.1.199.62:0.0
> and then
> 	netscape &
> 
> With MI/X on MacOS, this works fine (albeit painfully slow -- it's more of
> an experiment than a practical approach).  But with NetBSD, the remote
> host complains:
> 	
> 	Xlib: connection to "129.1.199.62:0.0" refused by server
> 	Xlib: Client is not authorized to connect to Server
> 	Error: Can't open display: 129.1.199.62:0.0
> 
> Since I can get this to work on the MacOS side, I am guessing that the
> difficulty is somehere in the NetBSD configuration, but I really don't
> know where to begin looking.
> 
> I have added the remote host to /etc/hosts.allow.  For this change to take
> affect, do I need to completely reboot (i.e., `shutdown -r`; then boot
> from MacOS) or can I just `shutdown` to single-user and go from there?
> 
> This not especailly important but even so I would like to understand
> what's happening here.

I don't really know anything about /etc/hosts.allow, but to run X clients
from another machine I do 
xhost +machine.name
And then you can run the clients from there. An alternative which is very
convinient is ssh, which automatically redirects X connections, so if I do 
ssh -f pseudo.ml.org netscape -geometry 500x450
ssh makes a pseudo screen on pseudo:10.0 which redirects things over to my
machine. ssh is also a good thing in general.
-Xiamin