Most of my notes for 22.04 still apply
Xorg Listen Tcp
This is a dirty hack, but I can't find the 'proper' way to do this.
For now, sudo vi /usr/bin/Xorg and change it to read
basedir=/usr/lib/xorg
if [ -x "$basedir"/Xorg.wrap ]; then
exec "$basedir"/Xorg.wrap "$@" -listen tcp
else
exec "$basedir"/Xorg "$@" -listen tcp
fi
by appending -listen tcp. Then if you are on your own private LAN and so
don't care about permissions, then in your .bash_login put
[ -n "$DISPLAY" ] && xhost +
if needed.