Author Topic: How to share a printer, Linux to Linux, on your home network  (Read 6006 times)


  • Packager
  • Member
  • ****
  • Posts: 5
How to share a printer, Linux to Linux, on your home network
« on: January 10, 2010, 03:39:57 pm »
Since I've spent the better part of the day trying to get this to work in Vector Linux, I thought I'd post a "how to" as to "how I done it".  All I was trying to do was share a printer on a desktop running Vector Linux with a laptop on my home network, also running Vector Linux.  Should be simple, right?  Not so much.

Server (desktop to which the printer is directly attached) set-up:

Server Firewall:

If you're running a firewall, open port 631 and allow everyone on your local network to print.

In my case, my local network is 192.168.1.nnn.  So, in Firestarter, I clicked the "policy" tab.  Right clicked in the "Allow connections from host" window and added:

"Allow connections from" IP, host or network:  (I think you could also enter an IP that matches the first 3 of the 4 "dotted quad" numbers of your IP address.  Thus, in my case,: "192.168.1")

Right click in the "Allow service" window and choose:

"Ipp" from the drop-down box and/or type in "631" for the "port".  When the source is: (Again. I think you could also enter an IP of the form: "192.168.1" if your home network router divvies out IP's of the form: 192.168.1.nnn)

Server Printer:

On the computer sharing the printer (server), I setup my printer in CUPS (http://localhost:631).

Give your printer a name.  I suggest a name with no spaces.  Keep it simple and remember it because you're going to need it later.  I used "lj5p".

I chose the "LPT #1" device because my printer is an old HP Laserjet 5p printer.  I presume you'd use the "SCSI" device if you're printer is hooked up by USB.  Continue in the CUPS setup choosing the printer manufacturer and model for the correct printer driver.

Print a test page.  Make sure it works.

Client Setup:

On the client computer (in this case my laptop, also running Vector Linux), add a printer using the CUPS interface (same URL: http://localhost:631).

This time through choose "Internet Printing Protocol (ipp)" as the device.

Now for the Device URI, the important part and absolutely essential:

The URI will be of the following form:


so, in my case:


The examples CUPS use for an ipp printer are totally off the mark and the cause of an afternoon's worth of consternation!

Continue with the choosing of the printer manufacturer and the model number for the drivers.

You should be good to go.

Hope this helps someone.  It's surprising how little documentation there is on the Internet about Linux to Linux printer sharing.


  • Administrator
  • Vectorian
  • *****
  • Posts: 3781
Re: How to share a printer, Linux to Linux, on your home network
« Reply #1 on: January 10, 2010, 05:02:27 pm »
Excellent, I'll test it out tomorrow.
Vectorlinux screencasts and  tutorials can be found at....