Saturday, 25 August 2012 12:49

TP-LINK TL-WR1043ND router as a Print Server

This article shows the step on how to setup the TP-LINK TL-WR1043 router as a print server. The USB printer is connected to the USB port of router in order to support print sharing from network.
Install USB Basic Support (usb.essentials).
Package usbutils is optional.
opkg update
opkg install kmod-usb2
opkg install usbutils
Install usb printer support
opkg install kmod-usb-printer

Install p910nd print server
p910nd is a small printer daemon intended for diskless workstations that does not spool to disk but passes the job directly to the printer.
opkg install p910nd
Edit /etc/config/p910nd
Using WinSCP to edit p910nd file as shown in figure below

WinSCP edit p910nd configuration file

config p910nd
option device /dev/lp0
option port 0 
option bidirectional 1
option enabled 1

Configure Firewall
Ms Windows use port 9100 for print server, so we have to configure firewall to allow port 9100.
edit the file in /etc/config/firewall as shown in figure below

WinSCP edit firewall configuration file

Add the following code to the end of firewall.
#Allow attached network printer
config 'rule'
option 'src' 'lan'
option 'proto' 'tcp'
option 'dest_port' '9100'
option 'target' 'ACCEPT'

Figure below shows the code had been added to the firewall.

Configure Printer in Firewall

Enable automatic start of print server when router boots
#/etc/init.d/p910nd enable

Restart router
# reboot
Add a TCP/IP Printer Port
  • Start-->Settings-->Control Panel-->Printer and Faxes
  • Select Add a Printer
A series of pictures below show you on how to add TCP/IP printer port to Windows XP.
Local or Network Printer


Select a Printer Port


Add Port

 Click Next (use default) for the rest of question until you see the following screen.

Install Printer Software

Now you had install a TCP/IP port (  to computer wihtout install any printer driver.
Install Printer Drive
  1. Attach printer to computer which running Ms Windows
  2. Install printer driver as usual.
  3. Test the printer make sure it can print form computer.
  4. Unplug the printer from computer and plug it to the USB port of router.
  5. Use the above port as your printer port as shown in figure below.

Modify Printer Port


Read 56312 times Last modified on Sunday, 12 June 2016 10:49
Back to Top