Giter Club home page Giter Club logo

Comments (7)

anujdatar avatar anujdatar commented on August 28, 2024 1

Hi,

Macs need mdns and some added configuration for printer discoverability and AirPrint. I think iPhones and iPads can work without this, but I am not sure. I did not have an Apple device when I started this project. I've been meaning to add avahi-daemon and test the containers out, but have not gotten around to it. I'll try to do it over the weekend. Thanks for reminding me.

Anuj

from cups-docker.

jbehrmusic avatar jbehrmusic commented on August 28, 2024 1

I've added the printer through my server IP (without mDNS) and it recognized the printer.

I can confirm, this is working! I was typing in the address wrong. I was extremely close though lol. I had put a / at the end of the address and I had the queue field the same. Thank you!

Do we know if this also works with AirPrint for iPhones/iPads?

from cups-docker.

jbehrmusic avatar jbehrmusic commented on August 28, 2024

Thanks for the quick response!

from cups-docker.

matheusvellone avatar matheusvellone commented on August 28, 2024

I've added the printer through my server IP (without mDNS) and it recognized the printer.

Important to note that i've selected "Generic PostScript Printer" drivers instead of my printer's one. I wasn't working until i've changed this (got into this issue searching for this solution)

from cups-docker.

anujdatar avatar anujdatar commented on August 28, 2024

Important to note that i've selected "Generic PostScript Printer" drivers instead of my printer's one. I wasn't working until i've changed this (got into this issue searching for this solution)

Aah, I see. Good to know. I don't have much experience with MacOS and iOS. I only ever use them when I need to fix something for my parents, lol.. The 5 minutes I spent on a it was trying to set up the printer on my parents' iPhones/iPads and Macbook. Couldn't see it when done through docker because I didn't have avahi-daemon. But could see it if I set up CUPS directly on a Pi with avahi-daemon installed via apt.

Thanks,
Anuj

from cups-docker.

gmuth avatar gmuth commented on August 28, 2024

Running Avahi in docker and exposing the bonjour announcments is not so easy. I remember I had success when allowing the container to use the host network. Reason is that mDNS is based on udp/multicast. Docker Port-forwarding only supports tcp connections. When using the host network you have to make sure no other services use the same ports. e.g. you might have to turn off CUPS Browsing on the docker host (e.g. if you have mac).

from cups-docker.

anujdatar avatar anujdatar commented on August 28, 2024

Reason is that mDNS is based on udp/multicast. Docker Port-forwarding only supports tcp connections.

I thought Docker does have udp networking too. I hate docker networking. I remember getting IPv6 to work on docker with ufw enabled is an absolute nightmare.

When using the host network you have to make sure no other services use the same ports. e.g. you might have to turn off CUPS Browsing on the docker host (e.g. if you have mac).

I typically use this on a Raspberry Pi or a similar SBC, so as long as CUPS is not installed on the base system everything should work even with host networking right?

Running Avahi in docker and exposing the bonjour announcments is not so easy. I remember I had success when allowing the container to use the host network.

Yeah, I have tried it in the past, I've had issues getting the cups-container to show up on a Mac, I figured it was bonjure related. But was unable to spend much time troubleshooting. I'll try it over the break, when I have access to a family macbook.

Do we know if this also works with AirPrint for iPhones/iPads?

I have printed using my mom's iPhone a long time ago. Will check again over the break. I am literally the only person in the entire family who does not have a single Apple device.

from cups-docker.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.