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
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
edit the file in /etc/config/firewall as shown in figure below
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.
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.


Click Next (use default) for the rest of question until you see the following screen.
Now you had install a TCP/IP port (192.168.1.1) to computer wihtout install any printer driver.
Install Printer Drive
-
Attach printer to computer which running Ms Windows
-
Install printer driver as usual.
-
Test the printer make sure it can print form computer.
-
Unplug the printer from computer and plug it to the USB port of router.
-
Use the above port as your printer port as shown in figure below.