kprinter polling

Kurt Pfeifle k1pfeifle at gmx.net
Thu Nov 25 03:01:21 CET 2004


On Thursday 25 November 2004 00:00, Maf. King wrote:
> On Wednesday 24 Nov 2004 21:05, Frank Siegert wrote:
> > Hi list,
> >
> > I am using kprinter in KDE 3.3.1 together with CUPS 1.1.22
> > I have the following problem:
> > When kprinter is started (from an application or command line), it seems to
> > look around for print servers with the result, that my router (that
> > connects my LAN to the Internet) starts a connection to the internet (and I
> > pay).
> >
> > I have not found any way, to tell kprinter to just use the locally running
> > CUPS server, and not poll around. Nothing else in KDE gives this problem,
> > so I suppose, my network settings are correct.
> >
> > Does anybody have an idea, how to stop this behaviour?
> >
> > Thanks a lot,
> > Frank
> >
> > PS: Everything is printing fine, but this is annoying and expensive.
> 
> 
> Hi Frank,
> 
> One way to stop the cost for you is to block the outbound browse packets in a 
> firewall before the line dials.  
> 
> Doesn't stop the problem, but makes it much less expensive ;-/
> 
> I bet there is a better way at application level, but I don't know it. 
> 
> Maf.

Frank, Maf,

this is a typical problem of CUPS (mis-)configuration. I dont think it is 
kprinter's fault. (You could perhaps post the contents of your own 
$KDEDIR/share/config/kdeprintrc to see what may cause it only happening
if you use kprinter....)

See these settings in "/etc/cups/cupsd.conf":

   Browsing
   BrowseAddress
   BrowseInterval

"Browsing On" with BrowseAddress commented out enables each client to "see"
and automatically find and use each neighbouring CUPS server without
driver installation.

"Browsing On", combined with a valid "BrowseAddress" enabled, lets each cupsd 
broadcast its local printer queues to all local print clients (in intervals
defined by BrowseInterval).

So what you should do, is set 

  BrowseAddress 192.168.1.255

or whatever your local LAN's broadcast address is (instead of 255.255.255.255
which may be what you have...).

If you dont need Browsing (because no client relies on this CUPS server for 
printing), you can savely switch it off:

  Browsing Yes
  #BrowseAddress invalid

or even

  Browsing No
  #BrowseAddress invalid

The first alternative still lets your PC use other CUPS servers, the second 
one ignores them too, and relies on local printing only.

Cheers,
Kurt  




More information about the kde-print mailing list