Why can't I get a response from a printer that supports TCP / IP?

My ultimate goal is to send a print job to the printer via the Internet. The trick is that the printer is connected directly to the router, so I cannot count on computer processing.

The path to the print job: Computer → Internet → Router → Printer

The printer is an Epson TM-T88V with a UB-E02 plug-in (it originally came with a 25-pin module).

The router is a D-Link DIR-655 with port 9500 redirected to the LAN port 9100 and the IP address of the LAN printer. Using this setting, I can enter the IP address of the WAN router + port 9500 in a web browser, and the printer issues an HTTP request that it receives.

From the terminal, if I use lpr (specifically lpr -h ip-address: 9500 filename.txt), the printer prints the HTTP request it receives (and not the file), and lpr seems to just wait for a response. According to the UB-E02 Technical Reference, the Connect-It module supports lp / lpr.

Why does the printer print an HTTP request and not send a response?

+4
source share
1 answer

The port you opened is most likely a raw printer dump port for the printer. There is probably a separate port that says RFC1179 that will talk to your lpr client.

You should not send HTTP control to any of these ports.

+2
source

Source: https://habr.com/ru/post/1335006/


All Articles