can CUPS listen on a given interface (not IP)?

Michael Sweet mike at
Mon Aug 22 09:51:16 PDT 2005

Mangoo wrote:
> By default, CUPS listens on all network interfaces, as defined in cupsd.conf:
> Port 631
> If my PC has two more network devices (eth0 - internet, eth1 - intranet, dynamic) - can I configure CUPS to listen on a specified network interface, eth1?
> I can't specify its address in cupsd.conf, as it's DHCP-assigned-
> On the other hand, I don't want CUPS to listen on all network interfaces (eth0 is internet, insecure from definition).
> So, to be short: how to configure CUPS server to listen on lo and eth1, but *NOT* listen on eth0?

Right now there is no way to do this.

I'm not sure how we'd implement this in the general case, since we'd
need to rebind the listen socket whenever the IP address of an
interface changed...

You can file a RFE at:

so that your request is "in the system".  Perhaps we can come up with
a long-term solution...

Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Document Software

More information about the cups mailing list