I have some X client program which needs access to an X server. It is only able to access the X server by TCP, not by other methods like unix domain sockets. It will run on the same host as the server, to make things easy.
So, how can I make my Xorg server to listen on TCP port 6000, but only for connections from localhost?
I found How to make X.org listen to remote connections on port 6000?, which explains how to enable access for remote hosts, but I don't really want remote access (for security reasons, mainly).
I thought about somehow forwarding the default transport to TCP, but I didn't really find information about what the default transport is.
(I'm using kdm as my display manager here, but I think I can transfer solutions for either display manager, or even switch the display manager.)
This is on 11.04 on a mixed Kubuntu-Ubuntu-XUbuntu installation (originally Kubuntu, but I added ubuntu-desktop and xubuntu-desktop. On boot it is now saying Xubuntu 11.04). I'm now using the gnome-classic desktop, I think, from KDM.