Which file configures Xorg to listen on TCP port 6000?

I am using mwm as a window manager, I am not using any X Display Manager.

I want to enable the TCP listening on port 6000 of the X server, so other workstations in the LAN can launch applications remotely exporting DISPLAY to my workstation.

I use `/usr/local/bin/startx` to launch the server and configure everything in `~/.xinitrc` and `~/.Xdefaults`.

I have checked that the X server is not listening on TCP port 6000, it is my understanding that this requires the `-listen tcp` flag. But where shall I configure the flag?

I have also checked the Handbook but I can not locate that information present.

1. Is this the right way of launching X if you are not using X Display Manager and you are using a legacy window manager such as mwm?
2. Which configuration file(s) shall I modify to enable tcp?
 
Typically SSH should be used for this these days. Something like the following:

$ ssh -X somehost /usr/local/dt/bin/Xsession

or

$ ssh -X somehost mwm

Otherwise, you can include that flag from startx. I.e:

$ startx mwm -- /usr/local/bin/Xorg :0 -listen tcp

Additionally, you might want to consider VNC (i.e tigervnc). This is basically an X-server (Xvnc) that allows clients to connect, run applications and then disconnect without the program instance being closed.

Some performance notes:
  • -listen TCP - Fastest if using an older, X-aware widget set like Xaw, Motif
  • SSH - Most secure but not as fast as direct connection
  • VNC - Fastest if using a rasterized UI toolkit with i.e fade effects
 
Some performance notes:
  • -listen TCP - Fastest if using an older, X-aware widget set like Xaw, Motif
  • SSH - Most secure but not as fast as direct connection
  • VNC - Fastest if using a rasterized UI toolkit with i.e fade effects
Thanks for the advice.

The use case is development environment using Xt/Motif. It flies with X11 redirection in terms of speed because you are using X11 as it was designed for: a network transparent graphics protocol
 
Back
Top