Sharing a USB printer from Mac OS X to Windows

In: Mac|Operating Systems

5 Feb 2007

Not too long ago I was asked to use hook up the Mac Mini that was collecting dust in our office to our HP Deskjet printer (HP Deskjet 1280 to be exact) and have it function as a “print server” of sorts (we have since replaced it with a NAS with print server functionality, which subsequently broke – that’s how long this post has been sitting in my drafts folder). While setting it up to be shared with Mac machines was a cinch (we have a grand total of 3 Mac machines in the office, including the Mac Mini and my treasured MacBook Pro), sharing the printer from the Mac (Mini) to Windows machines was significantly more difficult. After some trial and error, first with what made the most sense, and then with stuff I could glean off the Internet, I finally arrived at something that works. Maybe this would be useful for the next unfortunate bloke that needs to do this sharing of printers from Mac to Windows machines without a print server.

First point of reference: Print from Windows XP to a shared Mac printer tip on Mac OS X Hints. The tip suggests you select a PostScript driver in Windows after finding it on the network (which requires you to do several things first, but we will come to that later). This worked, but it was sub-optimal because you couldn’t use the printer driver software to do stuff like 2-up printing (i.e. print 2 pages per side per sheet). This post will show you how to share a USB printer from Mac OS X to Windows PCs with full driver capability.

  1. On the Mac (the one that the USB printer that you want to share is connected to), go to the Sharing preferences pane and ensure Printer Sharing and Windows Sharing are both turned on.
  2. Fire up your browser and go to – this is the web interface to CUPS. When asked to enter a password, login with your Mac OS X user account (it has to be an administrator account).
  3. Go to the Printers tab and add a new printer (yes, in addition to any existing printer configuration that already exist for the same printer). Choose a name that’s short and descriptive (no spaces). For the purposes of this guide, let’s call it ‘uberprinter’. Best to keep it under 12 characters since Windows is finicky.
  4. When asked to select a device, select USB printer.
  5. You’ll be asked for a Device URI. To find out, open up a terminal and type lpinfo -v. You should see your USB printer coming up. Mine came up as ‘direct usb://HP/Deskjet%201280?serial=CN516851RPUN’. Copy and paste this (without the ‘direct’ part – i.e., I’d have copied ‘usb://HP/Deskjet%201280?serial=CN516851RPUN’) into the ‘Device URI’ field.
  6. Select a ‘Make’ of ‘Raw‘. Keep going until the printer is added.
  7. You’re done configuring from the Mac. But before you go, determine your Mac’s IP address (do a ‘ifconfig’ in a shell or fire up System Profiler and check out the ‘Network’ item) – note it down somewhere. Now it’s time to hook up your Windows machine to use the shared printer.
  8. OK now go to your Windows machine and add a new printer (Control Panel -> Printers and Faxes). Select ‘A network printer… blah blah’. Don’t browse for the printer, you will enter its IP address directly in the ‘URL’ field. Enter ‘http://your.macs.ip.address:631/printers/uberprinter’ (replacing ‘your.macs.ip.address’ with your Mac’s IP address and ‘uberprinter’ with the short name you gave your printer). If you can’t remember your printer’s name, just scurry back to the Mac and browse to You should be able to see the printer you added listed there – its name is linked there.
  9. Now, all that’s left is to install the correct Windows printer driver on the Windows machine. If you’re lucky Windows already has your driver, if not do whatever you need to get the proper driver – after all, the purpose of jumping through all these hoops is to get full printer driver functionality off the shared Mac printer.

That’s it. That’ll teach you for not getting a print server or one of those new printers with network functionality.


Some readers wrote in with their own difficulties and have kindly allowed me to share their solutions. First off, Patrick McKrell who had a solution for cases where you still are just not able to print from the Windows machine (it involves killing a daemon so it’s pretty sweet).

Thank you for making available your instructions for sharing a USB printer connected to a Mac using OS X with a Windows PC. All of your points worked flawlessly on the Mac. My Mac is a B&W G3 running OS X 10.2.8. The printer is an HP PSC 1510.

Back to Windows Add Printer. Is my driver there? No. I browsed the Windows file system to Program Files/HP/. No luck. Couldn’t find or add my driver. Next I unplugged the printer’s USB cable from the Mac and into the PC. Windows detected the new hardware, created whatever files it needed, and automatically created the USB-connected PSC 1500 series printer in Printers and Faxes. Well, that’s pretty darn close. I opened the printer’s properties, changed the port from USB to Internet Port (as per your configuration guidance), sent a print job….and nothing. Hmmm.

Finally, I recalled seeing someone’s web post –thanks to your point of reference. I followed the poster’s instructions, and, yeah, it prints, and in color. Thanks again, Chu, for your post. It was easy to follow, and importantly, it worked with my setup (despite the color issue).

Patrick McKrell

The solution? Change your CUPS configuration to allow raw printing:

Basically, I saw that every job on the windows side had “error”.

After looking at the error logs for cups on the mac box (/var/log/cups/), I noticed this line repeatedly:

print_job: Unsupported format ‘application/octet-stream’!

Did some googling, and found a post with the answer:

> You probably need to uncomment the following lines in
> /etc/cups/mime.types and /etc/cups/mime.convs:
> /etc/cups/mime.types:
> #application/octet-stream
> /etc/cups/mime.convs:
> #application/octet-stream application/vnd.cups-raw 0
> –
> That will allow raw printing.

Then, kill -HUP the cups daemon, and you’re good to go.

211 Responses to Sharing a USB printer from Mac OS X to Windows


clash of clans free gems jailbreak 2014

October 4th, 2014 at 2am

If some one wants expert view about blogging afterward i advise him/her to go to see this blog, Keep up the nice job.


October 4th, 2014 at 5am

Thanks , I’ve just been looking for information approximately this
topic for ages and yours is the greatest I’ve discovered till now.
However, what in regards to the bottom line? Are
you positive concerning the supply?


villa per ricevimenti

October 7th, 2014 at 2am

Basta uno sguardo al portfolio di Studio Pensiero e si capisce subito che ill loto modo di far fotografia non è per niente convenzionale, e si viene subito rapiti dalla bellezza degli scatti.



October 8th, 2014 at 11am

Hi there, after reading this amazing article i am also glad to share
my familiarity here with colleagues.


November 26th, 2014 at 3pm

Sharing a USB printer from Mac OS X to Windows – redemption in a blog Sharing a USB printer from Mac OS X to Windows – redemption in a blog



November 28th, 2014 at 4pm

Thank you for this! Worked first time! Thank you!


Cannabis Stocks

December 28th, 2014 at 1am

I got this website from my buddy who told me about this web page and at the moment this time I am visiting this site and reading very informative articles here.



January 25th, 2015 at 8am

Great items from you, man. I have be aware your stuff prior
to and you are just extremely magnificent.

I actually like what you’ve got right here, really like what you’re saying and
the way in which through which you assert it. You are making it entertaining and you still care for to keep it smart.
I can not wait to learn far more from you. That is really a tremendous web site.


bitcoin client mac os x

February 7th, 2015 at 10pm

Bit Invest Online is a really Wonderful bot they are working on. I was lucky enough to get a
sneak peak of their system the other day night. They am currently taking signup and out of
the group of users signed up, only 20 users will learn how to become Bitcoin billionaires using algorithms.

Highly recommend



March 8th, 2015 at 11pm

Hi, I would like t? subscribe fo? this bloog to obtain hottest updates, thus ?gere can i d? it please help out.



March 18th, 2015 at 8pm


I install Bonjour for windows 7, works with word (MW Office) but not print pdf. If you watch it appears as printed (job completed)

Please help me.

Comment Form