Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

printing from web app to printer on osx #75

Closed
guersbru opened this issue Jan 25, 2021 · 2 comments
Closed

printing from web app to printer on osx #75

guersbru opened this issue Jan 25, 2021 · 2 comments

Comments

@guersbru
Copy link

guersbru commented Jan 25, 2021

I just setup a web app hosted on linux system. I connect the app with OSX client with a virtual zebra on localhost. When the print job is triggered, it fails :

  • with rlpr
rlpr: fatal error: client_open(): cannot connect to lpd
rlpr: error: connect to localhost:515: Connection refused
rlpr: warning: cannot bind to privileged port: lpd may reject
  • with lp nothing happens on the client, no failure on the server

When the app runs locally, lp printing completes successfully.
Am i missing something ?

@mtking2
Copy link
Collaborator

mtking2 commented Jan 27, 2021

When sending the print command are you specifying the hostname/IP of the OSX client?

ip = '123.4.5.6' 
# this should be the host/ip of the OSX machine.
# if calling from a rails controller you could use `request.remote_ip` here

print_job.print label, ip

@guersbru
Copy link
Author

Thanks for your answer. I used remote_ip with no luck.
I left all print_job parameters open to try different configurations (https://bprinting.osc-fr1.scalingo.io/test_gem).
I have tried on windows (with shared printer) with a virtual printer and physical one printer connected by USB. Same attempt on OSX (virtual and physical printer).

@bbulpett bbulpett closed this as completed Oct 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants