pdserver client ports details

A pdserver's client ports are defined by the -p flag on the start_server or startsrv command or by the PD_SOCKET setting when the server is started. The default is 6874 and is defined in /etc/services. Since each pdserver uses two consecutive ports if multiple pdservers are started on the same machine, the client port specified for the pdserver to use must be incremented by at least two to avoid conflicts. When a pdserver starts, it adds its client port in /var/lib/pd/pdserver.conf along with its locale (its language).

In the normal case where PD_SOCKET is not set, clients on the InfoPrint Manager server machine discover what port to use by looking in /var/lib/pd/pdserver.conf for the first entry in their locale (the user's language). If PD_SOCKET is set, it overrides any values in /var/lib/pd/pdserver.conf. Since clients on non-InfoPrint Manager server machines don't have access to the /var/lib/pd/pdserver.conf file, they use the PDHOST and PD_SOCKET environment variables or other configuration mechanisms to obtain this information. See the information for each client to determine how to configure.

Note: Clients should be configured to point at a pdserver running in the same language as the user. If this is not possible, they should be set to point to a pdserver runnin