Error: Can't open display ... authorisation issue on local network - Xwindows

This is a discussion on Error: Can't open display ... authorisation issue on local network - Xwindows ; Hi I have X running on pear viz. [eric@pear ~] 3 $ ifconfig|grep -m1 inet inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0 [eric@pear ~] 3 $ xhost access control disabled, clients can connect from any host Now on apple I try to run ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Error: Can't open display ... authorisation issue on local network

  1. Error: Can't open display ... authorisation issue on local network

    Hi

    I have X running on pear viz.
    [eric@pear ~] 3 $ ifconfig|grep -m1 inet
    inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
    [eric@pear ~] 3 $ xhost
    access control disabled, clients can connect from any host

    Now on apple I try to run xeyes to display on pear voz.

    [eric@apple ~] 3 $ xeyes -display 192.168.1.3:0.0
    Error: Can't open display: 192.168.1.3:0.0
    [eric@apple ~] 3 $ strace xeyes -display 192.168.1.3:0.0 2>&1 |grep -m1 refused
    connect(3, {sa_family=AF_INET, sin_port=htons(6000),
    sin_addr=inet_addr("192.168.1.3")}, 16) = -1 ECONNREFUSED (Connection refused)

    [eric@apple ~] 3 $ ifconfig|grep -m1 inet
    inet addr:192.168.1.2 Bcast:192.168.1.255

    How do I work around this error as xhost + does not solve the
    problem (even with explicitly specifying apple in the acl)?

    Thanks

    Eric Smith

  2. Re: Error: Can't open display ... authorisation issue on local network

    In comp.windows.x, Eric Smith

    wrote
    on 14 Jul 2003 06:56:49 GMT
    :
    > Hi
    >
    > I have X running on pear viz.
    > [eric@pear ~] 3 $ ifconfig|grep -m1 inet
    > inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
    > [eric@pear ~] 3 $ xhost
    > access control disabled, clients can connect from any host
    >
    > Now on apple I try to run xeyes to display on pear voz.
    >
    > [eric@apple ~] 3 $ xeyes -display 192.168.1.3:0.0
    > Error: Can't open display: 192.168.1.3:0.0
    > [eric@apple ~] 3 $ strace xeyes -display 192.168.1.3:0.0 2>&1 |grep -m1 refused
    > connect(3, {sa_family=AF_INET, sin_port=htons(6000),
    > sin_addr=inet_addr("192.168.1.3")}, 16) = -1 ECONNREFUSED (Connection refused)
    >
    > [eric@apple ~] 3 $ ifconfig|grep -m1 inet
    > inet addr:192.168.1.2 Bcast:192.168.1.255
    >
    > How do I work around this error as xhost + does not solve the
    > problem (even with explicitly specifying apple in the acl)?
    >
    > Thanks
    >
    > Eric Smith


    Check for a -nolisten tcp switch in your X startup on 192.168.1.3
    (probably in /etc/X11/xdm/Xserver, or somewhere similar).
    Basically, X is not opening a socket to port 6000; therefore,
    only local clients can connect. 'man Xserver' or 'man X' for more info.

    You are of course responsible for all security risks inherent
    in removing that switch. :-) Also, you'll need to be root to
    change the configuration in some cases.

    If you want a more secure system (although for a simple home net
    with proper firewalling, it's overkill) look into ssh, as it has
    transparent proxying/tunnelling.

    --
    #191, ewill3@earthlink.net
    It's still legal to go .sigless.

+ Reply to Thread