Closed juanxodj closed 7 years ago
PHP is running server-side, so most likely the server at your hosting provider can't see your printer at 192.168.1.20. See FAQ entry: Can I print from my server on the Internet?.
I am also a maintainer at receipt-print-hq/chrome-raw-print, which solves the same issue for USB printers, and could be be improved for this use case. If you are interested in contributing, please take a look at receipt-print-hq/chrome-raw-print#3.
I have an EPSON TM-U220 printer that works perfectly locally. My PC has IP (192.168.1.30) and the printer has IP (192.168.1.20). My problem arises when I upload my application to a server or hosting www.mywebpage.com .... When I want to print I throw this error: NetworkPrintConnector: Connection refused.
My autoload.php file looks like this:
What could be the problem? As I say, locally it works perfectly.