Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
CUPS daemon is not set to listen on port 631 in the whole network when user wants CUPS to show printers #2557
Using cupsctl, the CUPS web interface, or system-config-printer (Ubuntu Gutsy or Fedora Rawhide) to set the CUPS server option for showing shared CUPS printers from remote CUPS servers CUPS sets correctly
but misses to replace
So CUPS does not listen to the broadcasts.
Open the web interface, http://localhost:631/, go to "Administration", in the "Server" section check "Show printers shared by other systems" and uncheck all the rest.
If you still see the remote printers after that, clear the cache:
and observe for more than 30 seconds. The remote printers will not appear.
Many users did not see this problem as they have both "Show printers shared by other systems" and "Share published printers connected to this system" activated. The latter sets "Port 631" correctly.
Patch to fix this is attached.
CUPS.org User: till.kamppeter
See also the original report at Ubuntu:
CUPS.org User: martin.pitt.canonical
Please note that this patch is far from ideal.
There is no real need for opening the TCP port to the public just for browsing. Only the UDP port should listen to the world when browsing is enabled, and sharing is disabled.
CUPS.org User: mike
No, this patch is bogus.
Showing remote printers does not require an open Port 631 - that is only required to share printers with other systems.
CUPS browsing happens on UDP port 631, which is bound when Browsing is On and either of the BrowseLocalProtocols and BrowseRemoteProtocols lists CUPS (which is the default configuration on all operating systems).
If I was to guess at a cause, look at Ubuntu patches to CUPS and/or to firewall settings that would be blocking UDP port 631 when the scheduler is not configured to share printers.
This is not a CUPS bug.
#! /bin/sh /usr/share/dpatch/dpatch-run
fix-show-remote-printers.dpatch by firstname.lastname@example.org
All lines beginning with `## DP:' are a description of the patch.
DP: No description.