Home
My First Mac



 Help Buying and Getting
 Started with Your New Mac

1 Printer for Your Mac and PC

Quick Scan

First, choose whether you want to connect your printer to your Mac or PC.

Mac process is MUCH shorter.

Sorry, not much else here is quick.

1 Printer for Your Mac and PC – Can't We All Just Get Along?

So you just got a new Mac and you are wondering whether you need a new printer too. Maybe you can just use your old printer on a network hooked up to your PC or Mac. Let's take a look at a couple ways to get both computers printing from the same printer.

For many switchers that want to keep their PC around, there are a few ways to share one USB printer between both of their computers.

Admittedly, this task can be quite daunting at first, especially if you choose to leave the printer connected to the PC. Doing a quick Google search can leave you with many different tutorials on how do to this, leaving you clueless. Hopefully we’ll be able to explain to you an effective solution, soon.

To get started, you have to ask yourself one key question. Where do you want to leave your printer connected, the Mac or PC? If you bought a Macbook, for example, you most likely would want to leave it connected to your PC (assuming it is a desktop) so you can roam your house and print freely – not being stuck with an ugly black USB cable jetting out from the side of your new Mac, going to the printer.

With this decision made, please continue to the following sections accordingly.


I want to connect the printer to my Mac.

Lucky for us, Apple provides a great technology built into all Macs called Bonjour. (Formerly Rendezvous) Using this technology, networking your computers (Mac & PC) becomes a piece of cake.

Go to the Mac you intend to leave the printer connected to.

Note: We’ll assume the Mac can already print okay with the supplied printer. If not, please refer back to the instructions that came with your printer or to the manufacturer’s website for help setting it up on your Mac.

Open System Preferences by selecting the apple in your menu bar and clicking on “System Preferences”.

Click on “Print & Fax” and then select the “Sharing” tab. Now we’re going to check off the “Share these printers with other computers” box. In the list just below that, find your printer and make sure the selection box is checked off, if not, do so now.

Now we are ready to go onto the PC we would like to share our printer with.

Please visit this link and download the supplied piece of software, “Bonjour for Windows”. Next,  run this software and follow the instructions.

Assuming the Mac & PC are on the same network, wireless or wired, the Bonjour software should see the shared printer and add it to your printer list in Windows. The Bonjour software walks you through the process and therefore shouldn’t need explanation.

One downside to this is the Mac will have to be turned on in order for the printer to be accessible. Assuming all is well – congratulations on your success.


I want to connect the printer to my PC.

Unfortunately, this process may take a bit longer so please bare with me.

Go to the Windows based computer and log on.

Note: We’ll assume the PC can already print okay with the supplied printer. If not, please refer back to the instructions that came with your printer or to the manufacturer’s website for help setting it up on your PC.

Click on Start > Control Panel > My Network Places > Network Connections.

In the task bar on the left of the window, you should notice a button that says “Change Windows Firewall Settings”. In the new window, click on the “Exceptions” tab.

We’ll need to make sure the Windows Firewall isn’t going to interfere so we’ll need to click on “Add Port”, entering “Shared Printer” (or something you choose) in the Name field and “515” in the Port field. Leave everything else the same and choose “Ok”.

Back in the Control Panel, click on “Add or Remove Programs”. On the left, click on “Add/Remove Windows Components”, double clicking on the “Other Network File and Print Services” in the new window. Ensure “Print Services for Unix” is checked, if not, check it.

Now, continue the setup till it has been installed successfully. You may need your Windows install disk to complete the setup. Now you can go close out all the current windows and go back to your desktop.

We’ll need to open up Control Panel once more. Back in the Control Panel, you’ll need to see if on the left it says “Switch to Classic View” and click it. If you have “Switch to Icon View” instead, you are already in Classic and do not have to do anything.

In Classic View, click on Administrative Tools > Services. Now click on the “Extended” tab and look for the TCP/IP Print Server, turning it on and telling it to automatically do so from here out.

Windows Printer Services

We’re almost done on the Windows computer - don’t worry. Open up the Control Panel once more and click on “Printers and Faxes”. Hopefully you should see your printer in the list. Right click it, and then on “Properties”. Click on the “Sharing” tab in the new window and set the “Share Name” something short & w/o spaces.

Now you can close out the windows after saving your changes. The last step on the PC is to open up the “Start Menu” and click on “Run”. In the small box that appears, type in “cmd”.

A black window will open up and you will need to type in “ipconfig”, then hit enter. You’ll need to note the IP address of the computer which we’ll use a bit later. (It usually is 192.168.x.x)

Almost done, stick in there. Now we need to head over to the Mac and open a Terminal window. Terminal can be found by clicking on the Finder > Applications > Utilities > Terminal.app. A white window should open up, this is Terminal. (a bit similar to the command prompt in Windows)

Now we need to type in the following, exactly.

cd /usr/libexec/cups/backend/


Terminal - backend

Now hit enter and then type in the following, once again.

sudo ln -s /usr/bin/smbspool smb


Terminal - smb

You will be asked for an administrative password, which you will have to enter.

Open up “System Preferences” by clicking on the blue apple in the menu bar, and clicking on “System Preferences” from the dropdown menu. In the new window, click on “Sharing” (3 rows down) and then check off “Printer Sharing” under the “Services” tab.

Note: If you already had “Printer Sharing” powered on, you’ll need to turn it off then on again for this to work.

Printer Sharing check box

Open up your web browser and type in http://127.0.0.1:631, selecting “Manage Printers”, then on the new page, “Add Printer” towards the bottom left.

Manage Printers in CUPS

Note: Sometime during this process you may be asked for an administrator’s account name and password. This is your Mac’s username & password.

Type in a name (mine is “Shared”), location, and a description. (None of which matter too much) Clicking “Continue”, look down in the drop down box for “LPD/LPR Host or Printer” which we will need to select, then clicking continue.

The “Device URL” is in the following format. Please type this in, filling in all the appropriate information.

lpd://the.windows.ip.address.from.earlier/your-printers-share-name

For Example: lpd://192.168.x.x/hpprinter

Clicking “Continue”, you will now need to choose the make & model of your printer.

Note: If your printer isn’t listed – don’t panic. Use a printer similar to yours. (I have an HP PSC1510, not listed, and used an HP Deskjet series driver – works great)

Now you can try printing something from your Mac and it should work fine. As in the Mac section, you will need to keep your Windows PC powered on in order to keep the printer accessible. Good luck!

Kevin Schaefer is a hobbyist photographer and can be found on the internet at KevinSchaefer.net.



Whew! Was that too much or could you follow along? Have you found an easier way to share a printer between a Mac and PC? Let us know in the Comments section below.


DIG DEEPER

Apple’s Bonjour in Wikipedia

CUPS Printing System in Wikipedia

Related Articles:

Use your Mac laptop to utilize a Windows printer 

Sharing your printer with Windows users on Apple.com

 
 

This button is an easy way to let readers bookmark articles on Digg, Del.icio.us, Stumbleupon, Google Bookmarks and other services with a single click. You can find out more about Social Bookmarking here.

CLOSE

 
 
 
 
 
 

CLOSE     

 
 







Your Comments:

So, like a few of the other respondents on this posting, everything else worked like a charm until I went to the http://127.0.0.1:631 site. When it asked me for a username and password, I put in both, and it still said the username or password was incorrect.
Did anyone ever find a solution to this problem? Or a way around it?
Any help would be greatly appriciated.
Thanks guys!


 TysonB
 05/20/2008  at  12:35 PM

TysonB, if you are running Leopard there is a new way to do this. Simply go into System Preferences, Print & Fax, Add a Printer, select type IP. Leave the protocol set to LPD. Enter the IP Address of your host PC in the address field. Enter the "share name" of the printer in the queue field. Fill in name & location as you wish. In print using, try to select an appropriate (or similar) print driver. These are the latest instructions for Leopard, sorry the article hasn't been updated yet.


 Kevin Schaefer
 05/20/2008  at  02:20 PM

Uhhh, excuse my ignorance but there is no mention of how the MAC communicates with the PC to get to the printer connected to the PC....eithered wired or wireless


 Joel
 06/12/2008  at  10:17 AM

I was just wondering how secure this type of printing is? For example, is it safe to print a bank statement? I'd like to use this setup between my wireless macbook and the printer connected to my PC. I not quite clear how this setup works.


 Adam
 08/01/2008  at  01:10 PM

Kevin thankyou so much for your info, i was having problems and this page came like a blessing, unfortunately i still cant get my Mac Mini to print to the PC Printer, i have 2 concerns,
1. when i entered all the commands you as you directed in the MAC Terminal, all went perfect till the end, when it would ask for my Password, for some reason when i would type in the numbers nothing would appear on the screen and i would press enter and it seemed like it went through said something like, "file exits" along with a bunch of codes
2. after finalizing all the steps you mentioned i went to try and print, and my MAC MINI keeps saying it is waiting to connect to the printer, but it never manages to connect it stays trying ot connect, i tried everything and cant figure out where i went wrong?

both computers are uptdate , mac has OS10 etc all good, just trying to make it work, please if you have any suggestions i would greatly apreciate it

peace

Mario


 Mario Guini
 08/11/2008  at  10:33 PM

Kevin, You are my new hero. I never thought that the sound of a printer printing could reduce me to tears of joy. After 48 hours of googling, e-mails and phone calls to Apple, Canon and Linksys I have finally achieved printer nirvana after reading your post to TysonB 5/20/08. My new macbook pro is now happily sharing a Canon printer hooked up to my Dell PC. Thanks again


 Diane
 08/13/2008  at  04:57 PM

Hey everyone, I appreciate the responses and I'm glad you were able to get it working, Diane. Joel, this will work over a wired or wireless network. Adam, I would feel safe printing a sensitive document as long as you have a secured network. All of the data is being transferred locally, it never leaves your home. Mario, (in reference to #1) I'll have an updated tutorial fairly soon which should make it a bit easier to setup, avoiding all Terminal commands. Some tips in the meantime, make sure you're two Macs are both on the same network. Have you ever had success with any type of file sharing between the two of them?


 Kevin Schaefer
 08/13/2008  at  06:09 PM

You are absolutely incredible. You should be paid incalculable amounts of money for your efforts. Not that it is saying much, but you are smarter than the highest level at HP tech support (3 tiers up), apple, trendnet, linksys, and two other companies. Bravo. I have been trying to get my printer to work for over a week. I have uninstalled, reinstalled, messed with sharing on both computers, everything imaginable. Not only was this quick and easy (for someone who has never used terminal) (however you might want to explain that there are spaces in between the terminal stuff), but you somehow got my brand new NAS 500gb drive to be recognized by everything and working. I would have paid to have your help. You have made me so happy and need to pat yourself on the back. Supposed "apple genius's" said "ugh, macs and pc's can't do that. It's IMPOSSIBLE." Well then, you should be able to have any job at apple/anywhere else you want.


 Justin
 09/04/2008  at  10:16 PM

Kevin,
Thank you sooooo much for this article. I used the old-school method you outlined here and even though the UI for CUPS has changed since you wrote the article, I was able to figure it out easily enough and get my MacBook Pro to print to my HP All-in-One connected to my PC. One question... Given I have Leopard, is there any merited reason to delete my printer and use the TCP/IP Add Printer option instead? Would communications between my Mac & PC/printer be faster? Are more printer features available this way? Thanks again!


 Jon
 09/13/2008  at  01:17 AM

Kevin, i got to the password stage in my new Mac. We have: bash 80 x 24, I start typing my password and nothing happens.I had to close the box a message said I should be sure of my sudo or I could ruin system files, it also said to Ctrl-C to abort when I did that, it showed part of my pc ip address and the computer name, so it would not abort nor would it allow me to enter my password. Any ideas? Also I noticed there are spaces in the command prompts, is that correct?


 Mrs. S
 10/12/2008  at  10:24 PM

Page 6 of 6 pages « First  <  4 5 6

Your response:

Name: Email:

Notify me of follow-up comments

Enter the word you see below:


Remember my personal information

Please keep your comments related to the topic. Personal attacks, offensive language or comments containing advertising will be deleted and you may be banned from MFM.

MFM comments are moderated. It may take a few minutes to a few hours before your comment shows up so we can verify it's not comment spam. Sorry, but we receive spammy comments all day long.

Mac Link of the Day

15 reasons Macs are still better than Windows PCs

With Windows 7 coming up, it's time to yet again ponder on whether Microsoft has the upper hand in operating systems. Here's 15 reasons it doesn't

-APC

>> Archive