<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi,<br>
      <br>
      I followed the instructions in this tutorial<br>
      <br>
      <a
href="https://help.ubuntu.com/community/SaneDaemonTutorial?action=show&redirect=sane.d+tutorial"
        target="_blank">https://help.ubuntu.com/community/Sa...ane.d+tutorial</a><br>
      <br>
      to set up a network scanner.<br>
      <br>
      Everything should be set as needed. However, when I open xsane on
      a client PC (I tried more than one client, with the same result),
      the host saned denies access:<br>
    </p>
    <div class="bbcode_container">
      <pre class="bbcode_code" style="height:84px;">Feb  6 14:29:56 xxxxxxx systemd[1]: Started Scanner Service (xxx.xxx.xx.xxx:46488).
Feb  6 14:29:56 xxxxxxx saned[5122]: saned (AF-indep+IPv6) from sane-backends 1.0.26git starting up
Feb  6 14:29:56 xxxxxxx saned[5122]: check_host: access by remote host: localhost
Feb  6 14:29:56 xxxxxxx saned[5122]: init: access by host localhost denied
Feb  6 14:29:56 xxxxxxx saned[5122]: saned exiting</pre>
    </div>
    I'm puzzled here by the fact that the access request comes from
    'localhost' instead of the client IP/name. If I indeed include
    localhost in the allowed IPs, the log changes into:
    <div class="bbcode_container">
      <pre class="bbcode_code" style="height:48px;">check_host: access by remote host: localhost
init: bad status=22 or procnum=6350304</pre>
    </div>
    I tried several things (add saned to lp and saned groups, modify
    <a class="moz-txt-link-abbreviated" href="mailto:saned@.service">saned@.service</a>, define permission rules for saned), but nothing
    changes. Of course, the scanner works locally on the host. If,
    however, I add localhost both in saned.conf and in net.conf, I can
    connect to the scanner only locally, no second 'localhost' copy is
    detected by xsane (as mentioned in the tutorial for
    troubleshooting).<br>
    <br>
    Do you have any idea?<br>
    <br>
    Thanks,<br>
    Stefano
  </body>
</html>