CentOS Xserver – Fix DISPLAY=0.0 Requirement for Functionality

centosx-serverx-windows

Using CentOS. I cannot connect remotely and I believe it is related to fact I can only connect locally if DISPLAY is set to :0.0. Something is misconfigured but I can't figure out what.

>xhost +

    access control disabled, clients can connect from any host

>emacs -d :0.0

    #works

>emacs -d 127.0.0.1:0.0 

    Cannot connect to X server 127.0.0.1:0.0.

>emacs -d localhost:0.0

    emacs: Cannot connect to X server localhost:0.0.

Best Answer

This is because Xserver is refusing TCP connections

run gdmsetup as root and uncheck "Deny TCP connections to Xserver"

Related Question