[cups] Windows not seeing shared printer

Mitchell, Paul A paul_mitchell at unc.edu
Fri Dec 5 07:50:21 PST 2014


Hello,
 I've installed CUPS 1.4.2 on a redhat linux box (2.6.32-504.1.3.el6.x86_64)
and configured a set of network printers on it. I'm able to print to these devices easily from that server, and I can access the Administrative web pages from any machine on the subnet (including various windows boxes).

When I try to add these printers via the Add Printer wizard on either a Windows server 2012 or Windows 7 machine (the same machines which can access the Administration pages) I am unable to access the print server.

For instance, attempting: servername:631/printers/larry/.printer, times out with the "Connect to Printer  Windows couldn't connect to the printer. Check the printer name and try again. If this is a network printer, make sure the printer is turned on,and that the printer address is correct." blurb.

Here's what the cups daemon is listening to  on the server:

sudo netstat -nlp | grep cupsd
tcp        0      0 0.0.0.0:631                 0.0.0.0:*                   LISTEN      13926/cupsd
tcp        0      0 :::631                      :::*                        LISTEN      13926/cupsd
udp        0      0 0.0.0.0:9100                0.0.0.0:*                               13926/cupsd
unix  2      [ ACC ]     STREAM     LISTENING     226884 13926/cupsd         /var/run/cups/cups.sock

the 9100 port might be a leftover from trying to work with samba, which I've removed - the cupsd.conf is listening on:
Port 631
Listen /var/run/cups/cups.sock

And FTR, iptables is open to ports 631 (tcp/udp) and 515 (tcp).

Is it possible that the Windows server is trying to add the printer using a different port (should I also be listening on 515)?  Any help will be appreciated - I'm a Unix guy trying to configure w Windows machine, and it's an uphill process!

_______________________________________________________________________________________

        Paul Mitchell
        ITS Systems/Enterprise Operations
        email: pmitchel at email.unc.edu
        location: 440 Franklin, cubby 1512, CB#1150
        desk phone: 919 445-0063
_______________________________________________________________________________________



More information about the cups mailing list