[sane-devel] Problems with remote scanner.

m. allan noah kitno455 at gmail.com
Fri May 16 16:02:17 UTC 2008


server said: 'getaddrinfo failed: Name or service not known' when it
tried to lookup the remote machine. try adding it to /etc/hosts on the
server.

allan

On Fri, May 16, 2008 at 10:54 AM, Daniel Munoz
<daniel.munoz at karinasoft.com> wrote:
> Hi Everyone.
>
> I have a problem with a remote scanner. This is my scenerio:
>
> I have a localnetwork at home. Two computers. The server is running Fedora 6
> and the client is running ubuntu 8.04.
>
> The server has a HP all-in-one printer/scanner. Both are working on the
> server.  I have been able to configure the ubuntu computer to use the remote
> printer, but not the scanner.
>
> On the Server I configured the following:
>
> 1. Installed xinetd and created a file in xinetd.d called saned with the
> following:
> # default: off
> # description: The sane server accepts requests
> # for network access to a local scanner via the
> # network.
> service sane-port
> {
> port        = 6566
> socket_type = stream
> wait        = no
> user        = saned
> group       = saned
> server      = /usr/sbin/saned
> }
>
> 2. In /etc/sane.d configure the following files:
> 2.1 saned.conf -> added the IP of ubuntu machine: 192.168.1.3
> 2.2 net.conf -> added hostname of the server -> www.karinasoft.com
>
> After doing that I restarted xinetd and run the command scanimage -L and these
> is the result:
>
> [saned at karinasoft sane.d]$ scanimage -L
> device `hpaio:/usb/Deskjet_F300_series?serial=CN6AEGZ16X04KH' is a
> Hewlett-Packard Deskjet_F300_series all-in-one
> device
> `net:www.karinasoft.com:hpaio:/usb/Deskjet_F300_series?serial=CN6AEGZ16X04KH'
> is a Hewlett-Packard Deskjet_F300_series all-in-one
> [saned at karinasoft sane.d]$
>
> So the xinetd is working OK, and showing the scanner on the net.
>
> But when I try to run that command from the ubuntu computer, I cant see my
> scanner. So I debuged and these is what Its been shown:
>
>
> Server:
> [root at karinasoft sbin]# SANE_DEBUG_MUSTEK=128 ./saned -d128
> [saned] main: starting debug mode (level 128)
> [saned] main: trying to get port for service `sane-port' (getaddrinfo)
> [saned] main: [0] socket () using IPv6
> [saned] main: [0] setsockopt ()
> [saned] main: [0] bind () to port 6566
> [saned] main: [0] listen ()
> [saned] main: [1] socket () using IPv4
> [saned] main: [1] setsockopt ()
> [saned] main: [1] bind () to port 6566
> [saned] main: [1] bind failed: Address already in use
> [saned] main: waiting for control connection
> [saned] saned (AF-indep+IPv6) from sane-backends 1.0.18 ready
> [saned] check_host: detected an IPv4-mapped address
> [saned] check_host: access by remote host: ::ffff:192.168.1.3
> [saned] check_host: remote host is not IN_LOOPBACK nor IN6_LOOPBACK
> [saned] check_host: local hostname: karinasoft
> [saned] check_host: getaddrinfo failed: Name or service not known
> [saned] init: access by host ::ffff:192.168.1.3 denied
> [saned] quit: exiting
>
>
> Ubuntu
> root at kubuntu:/etc/sane.d# SANE_DEBUG_NET=128 scanimage -L
> [sanei_debug] Setting debug level of net to 128.
> [net] sane_init: authorize = 0x804aed0, version_code = 0xbf9d7448
> [net] sane_init: SANE net backend version 1.0.14 (AF-indep+IPv6) from
> sane-backends 1.0.19
> [net] sane_init: Client has little endian byte order
> [net] sane_init: searching for config file
> [net] sane_init: connect timeout set to 60 seconds
> [net] sane_init: trying to add 192.168.1.4
> [net] add_device: adding backend 192.168.1.4
> [net] add_device: backend 192.168.1.4 added
> [net] sane_init: done reading config
> [net] sane_init: evaluating environment variable SANE_NET_HOSTS
> [net] sane_init: evaluating environment variable SANE_NET_TIMEOUT
> [net] sane_init: done
> [net] sane_get_devices: local_only = 0
> [net] connect_dev: trying to connect to 192.168.1.4
> [net] connect_dev: [0] connection succeeded (IPv4)
> [net] connect_dev: sanei_w_init
> [net] connect_dev: net_init (user=(null), local version=1.0.3)
> [net] connect_dev: argument marshalling error (Connection reset by peer)
> [net] connect_dev: closing connection to 192.168.1.4
> [net] sane_get_devices: ignoring failure to connect to 192.168.1.4
> [net] sane_get_devices: finished (0 devices)
> device `v4l:/dev/video0' is a Noname Z-star Vimicro zc0301p virtual device
> [net] sane_exit: exiting
> [net] sane_exit: closing dev 0x8087f58, ctl=-1
> [net] sane_exit: finished.
>
>
> The server is closing the connection to 192.168.1.3 even when its on the
> saned.conf file, so now I dont know what to do.  Any help will be apreciated.
>
> daniel
>
> --
> Daniel Muñoz Honiball
> daniel.munoz at karinasoft.com
> www.karinasoft.com
> Software para la Gloria de Dios.
> Heredia, Costa Rica
>
> Msn: dankarsoph at hotmail.com
> GTalk (Google): damunoz.mh at gmail.com
> Skype: karinasoft
>
> Si se humillare mi pueblo, sobre los cuales ni nombre es invocado, y oraren,
> y buscaren mi rostro, y se convirtieren de sus malos caminos;
> entonces yo oiré desde los cielos, y perdonaré sus pecados, y sanaré su
> tierra.
> 2 Crónicas 7-14
>
> --
> sane-devel mailing list: sane-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/sane-devel
> Unsubscribe: Send mail with subject "unsubscribe your_password"
>             to sane-devel-request at lists.alioth.debian.org



-- 
"The truth is an offense, but not a sin"



More information about the sane-devel mailing list