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 http://127.0.0.1:631 – 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 http://127.0.0.1:631/printers/. 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.

Problems?

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.

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

Avatar

sexy outfits

August 20th, 2014 at 2am

This is the right website for anyone who hopes to understand this topic. You realize a whole lot its almost tough to argue with you (not that I personally will need to…HaHa). You definitely put a new spin on a topic that’s been discussed for many years. Excellent stuff, just wonderful!

Avatar

OLD+YOUNG

August 20th, 2014 at 2am

Hi, I do think this is a great web site. I stumbledupon it ;) I am going to return once again since I book-marked it. Money and freedom is the greatest way to change, may you be rich and continue to guide other people.

Avatar

plantas purificadoras de agua

August 20th, 2014 at 5am

Very interesting details you have noted , thanks for posting .

Avatar

adidas shoes for men

August 20th, 2014 at 8am

I have been browsing on-line more than three hours these
days, yet I by no means discovered any fascinating article like yours.
It’s lovely price enough for me. In my view, if all site owners
and bloggers made good content as you probably did, the web might be
a lot more helpful than ever before.

Avatar

plantas purificadoras de agua

August 20th, 2014 at 9am

Definitely, what a fantastic website and informative posts, I definitely will bookmark your blog.All the Best!

Avatar

dukan diet recipes pinterest

August 20th, 2014 at 9am

I know this if off topic but I’m looking into starting my
own blog and was curious what all is needed to get setup?
I’m assuming having a blog like yours would cost a pretty
penny? I’m not very web savvy so I’m not 100% sure.
Any tips or advice would be greatly appreciated.
Thank you

Avatar

??????????

August 20th, 2014 at 10am

This is a topic which is near to my heart…
Many thanks! Where are your contact details though?

Avatar

mahjong games

August 20th, 2014 at 12pm

Hello my loved one! I want to say that this article is awesome,
nice written and include approximately all important infos.
I’d like to see extra posts like this .

Avatar

Rafaela

August 20th, 2014 at 1pm

It’s amazing designed for me to have a web site, which
is helpful in support of my experience. thanks admin

Avatar

cedar finance

August 20th, 2014 at 2pm

What i do not realize is actually how you are not actually a lot
more neatly-preferred than you may be right
now. You’re so intelligent. You recognize therefore considerably
in the case of this subject, produced me personally imagine it
from a lot of various angles. Its like women and men are not fascinated
until it’s something to accomplish with Lady gaga!
Your own stuffs nice. Always care for it up!

Avatar

New Songs List

August 20th, 2014 at 3pm

I’m hoping tto check ?ut t?e same ?igh-grade blog posts f?om you iin the future as well. In truth, youyr creative writing abilities ??s inspired|

Avatar

??? ??????? ?????

August 20th, 2014 at 4pm

??????????????????????????????????????????????????????????????????????????????????????????????????????????????

Avatar

Tanya

August 20th, 2014 at 4pm

Good d?y! I simply wish to give you a big thumbs up for the excellent
info you have goot here on this post. I will
be returning to your web site for more soon.

Avatar

seo

August 20th, 2014 at 4pm

Hello Web Admin, I noticed that your On-Page SEO is is missing a few factors, for one you do not use all three H tags in your post, also I notice that you are not using bold or italics properly in your SEO optimization. On-Page SEO means more now than ever since the new Google update: Panda. No longer are backlinks and simply pinging or sending out a RSS feed the key to getting Google PageRank or Alexa Rankings, You now NEED On-Page SEO. So what is good On-Page SEO?First your keyword must appear in the title.Then it must appear in the URL.You have to optimize your keyword and make sure that it has a nice keyword density of 3-5% in your article with relevant LSI (Latent Semantic Indexing). Then you should spread all H1,H2,H3 tags in your article.Your Keyword should appear in your first paragraph and in the last sentence of the page. You should have relevant usage of Bold and italics of your keyword.There should be one internal link to a page on your blog and you should have one image with an alt tag that has your keyword….wait there’s even more Now what if i told you there was a simple WordPress plugin that does all the On-Page SEO, and automatically for you? That’s right AUTOMATICALLY, just watch this 4minute video for more information at. Seo Plugin

Avatar

Jerold

August 20th, 2014 at 5pm

Can I simply say what a relief to uncover someone that actually knows what they are talking about over the internet.
You actually know how to bring a problem to light and make it important.
More people ought to read this and understand this side of your story.
I was surprised you aren’t more popular given that
you most certainly possess the gift.

Avatar

Bubble Witch Saga 2 Cheats iOS

August 20th, 2014 at 6pm

Galaxyman, hero of Galactic Quest comic shop, where I get
all of my comic needs taken care of, chose the following as this week’s hottest books for the week of
November 10, 2010:. Style isn’t only for females this year, with plenty of funky ways for men to include
style on their wardrobe and Arnette have launched the chunky
framed Arnette Heavy Hitter in Ice Blue for a lot of ultra cool summer
styling. If you’ve thus far steered clear of social games, Candy Crush is a good place to
start.

Avatar

timberland boots

August 20th, 2014 at 6pm

Avatar

aboraonek

August 20th, 2014 at 7pm

That are the very best natural tea that may be availed through marketplace? This particular query is very friday amongst individuals. These days, it is simple to obtain natural teas powders such as chamomile, tulsi as well as lavender through on the internet extremely marketplaces. [url=http://www.kapsalondidi.com/]NFL From China[/url].[url=http://www.kapsalondidi.com/]NFL Jerseys Wholesale[/url]. Should you ‘ to obtain this particular natural item within tablet type,[url=http://www.kapsalondidi.com/]NFL Jerseys China[/url], really feel free of charge to find the greatest item without unwanted effects. Aside from stopping gallstone, you may also make use of this natural redy with regard to medical issues such as heartburn as well as constipation.

Avatar

fairfax chiropractors

August 20th, 2014 at 7pm

Howdy, i read your blog occasionally and i own a similar one and i was just curious if you get a lot of spam comments?

If so how do you reduce it, any plugin or anything you can advise?
I get so much lately it’s driving me insane
so any assistance is very much appreciated.

Avatar

sex tracker

August 20th, 2014 at 7pm

When I initially commented I seem to have clicked on the -Notify me when new comments are added- checkbox and from now on whenever a comment is added I get four emails with the same comment. Perhaps there is a means you can remove me from that service? Appreciate it!

Avatar

Online Gambling

August 20th, 2014 at 9pm

Greetings! Very useful advice in this particular article! It is the little changes that will make the most significant changes. Thanks a lot for sharing!

Avatar

browse this site

August 20th, 2014 at 9pm

May I simply say what a relief to uncover an individual who actually knows what they’re talking about on the web. You certainly realize how to bring an issue to light and make it important. More people should look at this and understand this side of the story. I was surprised that you are not more popular given that you definitely have the gift.

Avatar

Knoxville DUI Lawyer

August 20th, 2014 at 9pm

I used to be able to find good information from your content.

Avatar

PayDay Loans

August 20th, 2014 at 10pm

Great site you’ve got here.. It’s difficult to find quality writing like yours nowadays. I honestly appreciate individuals like you! Take care!!

Avatar

Knoxville DUI Lawyer

August 20th, 2014 at 11pm

touch you. Will you kindly drop me a mail?|Very great post. I just stumbled upon your blog and wanted

Avatar

dead rising 3 pc download

August 24th, 2014 at 5pm

Everyone loves what you guys tend to be up too. This kind of clever work and reporting!

Keep up the excellent works guys I’ve added you guys to our
blogroll.

Avatar

age of warring empire cheats free download

August 27th, 2014 at 6pm

There will be a mine of information age of warring
empire hack using both these platforms.

Avatar

yahoo

August 27th, 2014 at 8pm

Spot on with this write-up, I really believe this amazing site
needs a great deal more attention. I’ll probably be back again to
see more, thanks for the info!

Avatar

pinoy tv mmk

August 29th, 2014 at 7pm

Earlier many people were not aware of the concept of watching free movies online.
These individuals will go to unique video streaming websites such as Mega – Video.
Money for the movie itself and for the beverage when you are watching the movie.

Avatar

Rene

August 31st, 2014 at 12am

Magnificent goods from you, man. I have understand
your stuff previous to and you are just too excellent.
I really like what you have acquired here, certainly like what you’re
saying and the way in which you say it. You make it enjoyable and you still care for
to keep it wise. I cant wait to read much more from you.

This is really a great site.

Avatar

solar installation cost

August 31st, 2014 at 12am

That is a good tip especially to those fresh to the blogosphere.
Simple but very precise information… Thanks for sharing this
one. A must read post!

Avatar

how to hack facebook password no survey

September 4th, 2014 at 2am

Nonetheless, using digital cameras and employing this new artwork of digital photography have simply improved
photograph taking pictures by making capturing
pictures easy for everyone. Do not scroll down if you don’t want to see the answer.

I thought this was a great example of technology, and how technology can change things.

Avatar

viva3388

September 10th, 2014 at 10pm

Heya ??? ??? ??? ?????????????? ???
???? ?? ???????? ?????? ??????? ?? ??? ????? ???????? & ??? ?????????? ?????
??? ??????? ??? ??????? ???? ??? ???? ???
???? ???? ??? .

Avatar

gclub

September 11th, 2014 at 6pm

???????????? ?????????????? ???????????? ?? ??????? ?????????
??? ????????? ??? ?? ??? ???? ?????? ????????????? ?????? wrinting .

Avatar

www.berger-co.ch

November 26th, 2014 at 3pm

Sharing a USB printer from Mac OS X to Windows – redemption in a blog http://www.berger-co.ch Sharing a USB printer from Mac OS X to Windows – redemption in a blog

Avatar

Ryan

November 28th, 2014 at 4pm

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

Avatar

pyt

March 18th, 2015 at 8pm

Hi,

I install Bonjour for windows 7, works with word (MW Office) but not print pdf. If you watch http://127.0.0.1:631/jobs?which_jobs=all it appears as printed (job completed)

Please help me.

Comment Form