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.
link|improve this question
feedback

1 Answer

up vote 0 down vote accepted

This is because Xserver is refusing TCP connections

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.