[sane-devel] How to scan via WiFi over a LAN

Ralph Little skelband at gmail.com
Sat May 8 21:27:25 BST 2021


Hi

On 2021-05-08 1:08 p.m., Media Mouth wrote:
>
>
>> On May 8, 2021, at 12:55 PM, Ralph Little <skelband at gmail.com
>> <mailto:skelband at gmail.com>> wrote:
>>
>> On the client, if the net backend has access to the server then you
>> should be able to just do scanimage -L
>>
>> If you are not sure if it is contacting the server, you can generate
>> net backend diag to see what it is doing:
>>
>> SANE_DEBUG_NET=10 scanimage -L
>
> Ok that's brilliant, and indeed it did look look for the scanner on
> the remote machine, but got "access to [LAN IP] denied."
> Possibly because the user on the client doesn't match the user
> required by the server?
>
>     [13:03:04.606515] [sanei_debug] Setting debug level of net to 10.
>     [13:03:04.606716] [net] sane_init: authorize != null, version_code
>     != null
>     [13:03:04.606720] [net] sane_init: SANE net backend version 1.0.14
>     (AF-indep) from sane-backends 1.0.32
>     [13:03:04.606723] [net] sane_init: Client has little endian byte order
>     [13:03:04.606726] [net] sane_init: searching for config file
>     [13:03:04.606782] [net] sane_init: trying to add 192.168.0.15
>     [13:03:04.606787] [net] add_device: adding backend 192.168.0.15
>     [13:03:04.611399] [net] add_device: backend 192.168.0.15 added
>     [13:03:04.611415] [net] sane_init: done reading config
>     [13:03:04.611419] [net] sane_init: evaluating environment variable
>     SANE_NET_HOSTS
>     [13:03:04.611425] [net] sane_init: evaluating environment variable
>     SANE_NET_TIMEOUT
>     [13:03:04.611428] [net] sane_init: done
>     [13:03:04.611431] [net] sane_get_devices: local_only = 0
>     [13:03:04.611437] [net] connect_dev: trying to connect to 192.168.0.15
>     [13:03:04.663809] [net] connect_dev: [0] connection succeeded (IPv4)
>     [13:03:04.663837] [net] connect_dev: sanei_w_init
>     [13:03:04.664008] [net] connect_dev: net_init (user=ScanClient,
>     local version=1.0.3)
>     [13:03:54.809164] [net] connect_dev: freeing init reply
>     (status=Unknown SANE status code 796226418, remote
>     version=47.115.25193)
>     [13:03:54.809376] [net] connect_dev: access to 192.168.0.15 denied
>     [13:03:54.809391] [net] connect_dev: closing connection to
>     192.168.0.15
>     [13:03:54.809433] [net] sane_get_devices: ignoring failure to
>     connect to 192.168.0.15
>     [13:03:54.809448] [net] sane_get_devices: finished (0 devices)
>
>     No scanners were identified. If you were expecting something
>     different,
>     check that the scanner is plugged in, turned on and detected by the
>     sane-find-scanner tool (if appropriate). Please read the documentation
>     which came with this software (README, FAQ, manpages).
>
>
>
>
Do you have 192.168.0.15 in /etc/sane.d/saned.conf?

Cheers,
Ralph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20210508/d8d99a0a/attachment.htm>


More information about the sane-devel mailing list