mike42 / escpos-php

PHP library for printing to ESC/POS-compatible thermal and impact printers
Other
2.56k stars 861 forks source link

Star TSP654 Connection Timeout #1051

Open bobwurtz opened 3 years ago

bobwurtz commented 3 years ago

My setup:

Error: Failed to print. Command "smbclient '//This-MacBook-Pro/Star_TSP654__STR_T_001_' -c 'print -' -N -m SMB2" failed with exit code 1: do_connect: Connection to This-MacBook-Pro failed (Error NT_STATUS_IO_TIMEOUT)

Has anyone ever encountered this timeout message before? It happens pretty quickly - around five seconds. I was initially getting a smbclient not found error but I fixed that by updating the Dockerfile so I know the client is installed. I've exposed port 9100 from within Docker but that didn't help anything. The drivers for the printer are installed on the Mac and it is visible under System Preferences > Printers and Scanners.

Any advice or feedback would be appreciated.

Thank you!

Muraveiko commented 3 years ago

Google "Setting Up RAW Printing for macOS / OS X" and "lpr -P printername"

sebastianbonilla commented 8 months ago

@bobwurtz how are you accessing the printer from your docker container?

bobwurtz commented 8 months ago

@sebastianbonilla Sorry this was years ago and I don't use this setup anymore. And I don't remember how/if I ever got it working. Best of luck.