After installing XQuartz 2.7.9 on MacOSX 10.11.4, if I start XQuartz, type xhost + and then rlogin to a remote server, setenv DISPLAY to <hostname_of_my_mac>:0.0 and run for example xterm, I get the error:
xterm: Xt error: Can't open display: <hostname_of_my_mac>:0.0
Before updating to 2.7.9 (with 2.7.8) the same commands were working fine.
In XQuartz preferences both Authenticate Connections and Allow Connections from Network Clients are enabled.
I also tried to start XQuartz, type xhost +, setenv DISPLAY localhost:0.0 on my Mac, when launching xterm I get the same error, whereas if I setenv DISPLAY :0.0 it works fine.
I tried to delete the .Xauthority file but nothing changed.
With ssh -X everything works fine.
I think I remember seeing that xorg-server was disabling TCP by default. We can probably re-enable it if that's the case.
Can you please let me know when a version with this bug fixed will be available (also beta).
I was able to fix the problem by adding after line 107 of /opt/X11/bin/startx
defaultserverargs="$defaultserverargs -nolisten tcp"
the following two lines:
defaultserverargs="$defaultserverargs -listen tcp"
Now everything works!!
This should be addressed in XQuartz 2.7.10 beta2 or later (not released yet).
*** Bug 96394 has been marked as a duplicate of this bug. ***
*** Bug 96771 has been marked as a duplicate of this bug. ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct.