                             XHOST.EXE

Xhost controls who can have access to Enhanced X-Windows on the
current host machine.

SYNOPSIS:

xhost [ + |  - ] [Host]

DESCRIPTION

  The xhost command adds and deletes hosts on the list of machines
  from which the X Server accepts connections.

  This command must be executed on the machine to which the display
  is  connected.  You can remove a host from the access list by
  using the -Host parameter.  Do not remove the current host from
  the access list.  If you do, you must log off  the system before
  making any corrections.

  Entering the xhost command with no variables shows the names of
  the hosts allowed to access your X Server.

  To enable a remote host by default, the host can be defined in the
  file /etc/X?.hosts (? is the display number to which you enable
  access).

  For example, the display jeanne:0 can be accessed by systems
  defined in the file /etc/X0.hosts on a system that uses the
  default host name of jeanne.  In both the display name and the
  file name, 0 indicates the number of the display that the defined
  remote systems are allowed to access through Enhanced X Windows.

  Flags

  +Host Specifies a host node ID number and adds the host to the
   Enhanced  X-Windows  access list.  This flag is the same  as the
   Host flag; the + is optional when a host is specified.  If no
   host is specified after the +, then all hosts are allowed to
   connect to the server, effectively disabling the host access
   control system.

  -Host Specifies a host node ID number and deletes a host from the
   Enhanced  X-Windows  access list.  If no host is specified after
   the -, the host access system  is re-enabled with the current
   access list.
