[sane-devel] Failing to scan over network

Steven Lowette slowette@vub.ac.be
Sat, 16 Nov 2002 00:16:19 +0100 (MET)


Hello,

I've been trying for some time now, without succes, so it's time to ask
others. I can scan locally without any problem. However, if I want to do
it over the network, it won't work.
Authentication is not the issue, the problem seems to come in later, when
trying to transfer data.

If I run saned as a daemon from inetd or xinetd, with full debug output, I
get in my /var/log/syslog after a remote scanimage -L:

Nov  7 12:06:26 igor saned[3704]: main: starting debug mode (level 128)
Nov  7 12:06:27 igor saned[3704]: main: trying to get port for service
`sane' (getservbyname)
Nov  7 12:06:30 igor saned[3704]: main: port is 6566
Nov  7 12:06:30 igor saned[3704]: main: socket ()
Nov  7 12:06:30 igor saned[3704]: main: setsockopt ()
Nov  7 12:06:30 igor saned[3704]: main: bind ()
Nov  7 12:06:30 igor saned[3704]: main: bind failed: Address already in
use


If I run manually saned -d128 on the command line, the same
remote 'scanimage -L' works. However, issuing 'scanimage hp:/dev/scanner'
starts and finishes a scan, but yields an IO-error after some time (with
no image output on the scanimage side):

sane_start: Error during device I/O


I have iptables running on the machine with the scanner, but that's ok.
With the filters disabled, the problem remains. The computer with the
scanner is very slow, but as the local scanning works, I guess this is
neither an issue.
Googling didn't help much. Any suggestions?

Thanks,
Steven.