...
Open Settings.
Go to Devices → Printers & scanners.
Click the Add a printer or scanner button. Allow the computer a minute to scan for printers.
Click on the link for The printer that I want isn’t listed.
Select Add a printer using an IP address or hostname, then click the Next button.
For Device type: select TCP/IP Device.
For Hostname or IP address: enter
172.18.3.126
.For Port name: enter
172.18.3.126
.Uncheck Query the printer and automatically select the driver to use.
Click the Next button and wait a minute for the completion of the TCP/IP search.
Select Custom and click the Settings… button.
Under Protocol, select LPR.
For Queue Name: enter
lp
.Check LPR Byte Counting Enabled.
Click the OK button.
Click the Next button.