How Do I Enable CUPS Browsing Across A Network

cups

I have a CUPS server with two print queues defined. Once this was defined, all the CUPS clients on the same subnet could see the two print queues automatically, no problem.

Now I have a collection of machines on a separate subnet, reachable from the first subnet by a router.

How do I enable CUPS browsing on the second set of machines so that they can see the print queues defined on the first machine?

Let's call the server A.B.C.7. The first subnet is A.B.C.0/24. The second subnet is A.B.D.0/24, and there is a router with arms on both networks.

Best Answer

The 'native' way is to have a CUPS server (they don't need printers, just the CUPS software) on each subnet, and configure those servers to act as a Browse Relay server. The configuration would be

BrowsePoll a.b.c.7
BrowseRelay CUPS

That CUPS-running server will then respond to subnet-local browse requests with the remote server.

There is also a way to do it via multicast and the Service Location Protocol, but it isn't documented well at all.