oreilly.net:2
Display 2 on the TCP/IP host stealth.oreilly.net
1.14
1.14 TCP/IP Ports 21
172.250.12.7:4.3
Display 4, screen 3 on the host with IPv4 address 172.250.12.7
The displayspec can be passed to clients as an option value:
$ xclock -display displayspec
However, it is more common and convenient to use the DISPLAY environment variable.
If you are using a shell that follows the Bourne syntax (sh, bash, ksh, zsh, or
ash), you can set and export the DISPLAY variable like this:
$ export DISPLAY=displayspec
If you are a csh aficionado, use:
% setenv DISPLAY displayspec
Once the DISPLAY variable has been set, any new clients started will connect to the
specified display by default. (Command-line options take precedence over the
DISPLAY variable.)
1.13 TCP/IP Ports
Each X display uses a unique TCP/IP port so that multiple servers on the same system
do not conflict. All of the screens managed by one display are accessed through
the same port; screen selection is accomplished through the X protocol.
The standard port for an X server is 6000+display, so display :0 uses port 6000, and
display :15 uses port 6015. Since these port numbers are over 1024, the kernel permits
anyone to open them??”so you don??™t need to be root to run an X server.
Pages:
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59