FGLSERVER

Defines the graphical front-end for the application.

In GUI mode, FGLSERVER defines the TCP host name and port of the graphical front-end the runtime system will connect to in order to display application forms. FGLSERVER can also specify a Unix domain socket (pathname or abstract).

If FGLSERVER is not defined, the runtime system (fglrun) assumes that the front-end executes on the same computer, listening on TCP port 6400.

The values for the FGLSERVER environment variable must be set using the following format:

{ {hostname|ip-address}[:server-num]
| unix://socket-path
| abstractunix://socket-name
}
  1. hostname is the name of a machine on the network.
  2. ip-address is the IPv4 address ( Ex: 10:0:0:105 ).
  3. server-num identifies the front-end (TCP port = 6400+server-num).
  4. socket-path is the path of a Unix domain socket on the disk.
  5. socket-name is the name of an abstract Unix domain socket.

The server-num parameter defines the front-end server number (first is 0, second is 1, and so on). This defines implicitly the TCP port number the front-end is listening to, as an offset for the base port 6400.

For example, FGLSERVER=cobra:1 will use the TCP port 6401 (6400 + 1). This parameter is optional, when not specified, it defaults to zero (port 6400).