title: VcXsrv host-based access control not working
body: <p>All VcXsrv examples on internet is to run it with disabled access control, with '-ac' switch. But I'd actually like to turn on the host-based access control, so far not working.</p>
  <p>First I launch VcXsrv from my windows 10 PC (latest build/patch) named pc1, with the -auth switch.</p>
  <pre><code>&gt; &quot;C:\Program Files\VcXsrv\vcxsrv.exe&quot; :0 -multiwindow -clipboard -wgl -auth &quot;C:\users\myname\hosts.txt&quot;
  </code></pre>
  <p>In hosts.txt, I have the following, where linux1 is the remote host name</p>
  <pre><code>localhost
  inet6:localhost
  linux1
  inet6:linux1
  192.168.1.191
  inet6:192.168.1.191
  </code></pre>
  <p>The ip addresses are linux1's.</p>
  <p>However, when I launch xterm from linux1, I got this error</p>
  <pre><code>linux1$ /usr/bin/xterm -display pc1:0
  Authorization required, but no authorization protocol specified
  /usr/bin/xterm: Xt error: Can't open display: pc1:0
  </code></pre>
  <p>From pc1 loacally, when I run xhost, there is no mentioning of my remote host or its ip.</p>
  <pre><code>C:\Program Files\VcXsrv&gt;xhost
  access control enabled, only authorized clients can connect
  INET:pc1.mshome.net
  LOCAL:
  INET:pc1
  INET6:pc1
  </code></pre>
  <p>Therefore, looks like '-auth' didn't load the hosts.txt file</p>
  <p>Can anyone share some ideas?</p>