[sane-devel] problems getting network access to scanner..

debian@ausipos.com debian@ausipos.com
Mon, 05 Jul 2004 23:38:21 +1000


Hi list!

I am attempting to set up my scanner to work over the network.

the device is a HP5510 Multifunction Printer, I can print over the 
network without any problems and can scan when it is attached directly 
to my pc.

when the scanner is installed on the server I can ssh into the server 
and see the scanner:
root@eldric:~# scanimage -L
device `hpoj:mlc:usb:officejet_5500_series' is a hp officejet 5500 
series multi-function peripheral

when I try same from client i get:
zeus:/home/ben# scanimage -L

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).


my server ip is: 192.168.42.1
my ip is 192.168.42.8

in saned.conf on the server i have:
+
192.168.42.8
192.168.42.1

in net.conf on server and local i have:
192.168.42.8
192.168.42.1

in inetd.conf on the server i have:
sane stream tcp nowait saned.saned /usr/local/sbin/saned saned
as tcpd isn't running.

in /etc/services.conf on server & local I have:
sane 6566/tcp saned # SANE network scanner daemon

in /etc/sane.d/dll.conf I have:
# The HP OfficeJet backend is not part of the SANE distribution
# but is provided by the hpoj Debian package
hpoj


telnet from client (or server) to port server 6566 gives:
zeus:/home/ben# telnet eldric 6566
Trying 192.168.42.1...
Connected to eldric.GTFNET.
Escape character is '^]'.
Connection closed by foreign host.

if i tethereal my interfaces and type scanimage -L from my local machine 
i get:
zeus:/home/ben# tethereal -i eth1
Capturing on eth1
0.000000 192.168.42.8 -> 192.168.42.1 TCP 32867 > sane [SYN] Seq=0 Ack=0 
Win=5840 Len=0 MSS=1460 WS=0
0.004592 192.168.42.1 -> 192.168.42.8 TCP sane > 32867 [SYN, ACK] Seq=0 
Ack=1 Win=5840 Len=0 MSS=1460 WS=0
0.004636 192.168.42.8 -> 192.168.42.1 TCP 32867 > sane [ACK] Seq=1 Ack=1 
Win=5840 Len=0
0.006762 192.168.42.8 -> 192.168.42.1 TCP 32867 > sane [PSH, ACK] Seq=1 
Ack=1 Win=5840 Len=12
0.008373 192.168.42.1 -> 192.168.42.8 TCP sane > 32867 [ACK] Seq=1 
Ack=13 Win=5840 Len=0
0.010743 192.168.42.1 -> 192.168.42.8 TCP sane > 32867 [RST, ACK] Seq=1 
Ack=13 Win=5840 Len=0

So the machines seem to be talking..

Have I missed something basic?

Hope someone can help!

Ben