Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Ive been fighting with "CUPS" since many hours (too many) and I still cannot figure out whats wrong, I installed a printer on a Debian Machine, when I will add a printer I have two options "Local printers" and appear the printer that is connected (the one I want to use to print from my network) and "Other network printers", so, I thought maybe I should add local printer and I chosed my printer and I installed and all.. .and prints the tests and all... so, from windows I added my printer with the url but doesnt work, I read more and I find out the IPP protocol, some use it but some use AppSocket/HP JetDirect, I am very confused, which is the way I should add this printer? do I have to add a printer in the section of network ptiners?? any idea??? I dont get the logic of add network printer, seriously(I might be dumb for this).

I installed samba and I added this

<Location /printers>
  Order allow,deny
  Allow 192.168.0.*
  Allow 192.168.1.*

When I add printers on windows it asks for 3 options, first search (shows me computers on network, I cant choose the machine with debian, it asks me to login.. I dont know which user, its not Debian's OS , neither windows), second its "selected shared printer" I can not enter ipp:// , it only accepts http:// , and third one is printer throught TPC/IP, there I can add http:// ipp:// or socket:// but none of them are success...


share|improve this question
If you are printing to a CUPS server, it will be the ipp:// protocol. Port 631 by default. – jordanm Mar 14 '13 at 18:48
thank you, I tried but it cant be recognized... – jpganz18 Mar 14 '13 at 18:59
up vote 1 down vote accepted

You also have to make sure that you add the Listen :<port> to your cups configuration file /etc/cups/cups.conf.


# Our private connection we listen to 
Listen *:12345
# The port number her just an example
# Substitute it with one you wish to use.

# Allow machines on local network to use printers
<Location /printers>
  Order allow,deny
  Allow 192.168.0.*
  Allow 192.168.1.*

If this is what your configuration already looks like then awesome. Once you've saved /etc/cups/cups.conf make sure to restart the cups server to apply the changes. If your system is using systemd as its init this can be done with systemctl restart cups.service. If it's using sysvinit then /etc/init.d/cups restart would be used.

Once this is setup go to each windows machine and install a network printer and use the following scheme to identify the printer.


When asked what driver that you would like to use. Select the Generic category and use the one labeled MS Publisher Color Printer. Finish the installation of the network printer, test.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.