I have a Windows Server-based machine which acts as a print server.
I've installed a network printer using TCP/IP port and shared it.
Its IP is 192.168.4.101 (queue name MyPrinter), my server is 192.168.4.1 (hostname WIN-SERVER)
I'm trying to print a document on the server using LPR:
lpr -S "192.168.4.1" -P "MyPrinter" "C:\document.pdf"
LPR fails with Error: print server unreachable or specified printer does not exist..
If I use printer IP address directly, all works fine, but I don't see the print job in the queue on the server:
lpr -S "192.168.4.101" -P "MyPrinter" "C:\document.pdf"
It seems that there is something specific with printing from the localhost itself.
Could you please advise how I can make it work?
