Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Print from a Mac to a PC over a network using SAMBA Network
I've had to figure this out for myself quite some time ago, and I had to look this info up again today, so I figured I may as well share it with everyone else. This method works for me under 10.3 and 10.4 on a Mac, and XP Pro on the PC using an HP Deskjet 5100 connected to the XP Pro box. Here's how I print from the Mac to the PC via SAMBA:

  1. Install your Printer drivers on both the PC and the Mac. Make sure it will print form both machines when directly connected.
  2. Make sure printer sharing is turned on for the PC.
  3. Open Printer Setup Utility (in /Applications/Utilities).
  4. Click the Add Printer button.
  5. Hold down the Option key while clicking on "more printers" (for the Advanced menu).
  6. Select the Advanced menu at the top.
  7. For Device, choose 'Windows Printer via SAMBA.'
  8. Name the device whatever you want.
  9. In the Device URL field, use this format:
    smb://userName:password@workgroup/computer/printer
  10. Find your exact printer model. If it is not listed where it should be, look under "ESP." If ESP is not there, you will have to install your CUPS and GIMP printer drivers from your OS X install disk.)
That should do it.

[robg adds: We've run various tips on Mac/PC printing, but I couldn't find one just like this, so here it is...]
    •    
  • Currently 2.29 / 5
  You rated: 1 / 5 (7 votes cast)
 
[51,123 views]  

Print from a Mac to a PC over a network using SAMBA | 17 comments | Create New Account
Click here to return to the 'Print from a Mac to a PC over a network using SAMBA' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Print from a Mac to a PC over a network using SAMBA
Authored by: matski_98 on Dec 12, '05 08:46:19AM

Are there any hints about how to do this the other way round?

I've got an old iMac that I'd like to use to hang an HP USB printer off and share on the Windows network in the office. It works fine for the Macs in the office (natch!) but when a PC tries to print to it it prints out all garbled.



[ Reply to This | # ]
Print from a Mac to a PC over a network using SAMBA
Authored by: zbgump on Dec 12, '05 10:17:40AM
Try this: Turn on printer sharing and windows sharing on the Mac, and install bonjour on the windows box: http://www.apple.com/macosx/features/bonjour/

Thats supposed to work, although it doesn't for me. I've given up.

[ Reply to This | # ]

Print from a Mac to a PC over a network using SAMBA
Authored by: adrianm on Dec 12, '05 01:25:32PM

Works for me if I just do windows file and print sharing on the Mac. Client is win2kpro.



[ Reply to This | # ]
Print from a Mac to a PC over a network using SAMBA
Authored by: sapridyne on Dec 16, '05 06:25:11AM

Make sure you're using a Postscript driver, not the specific driver for the printer you're setting up. Apple Color LaserWriter 12/600 works great with my HP 1500 series printer.



[ Reply to This | # ]
Print from a Mac to a PC over a network using SAMBA
Authored by: squirri on Dec 12, '05 02:12:11PM

This link worked for me in both Tiger & Panther. The printer is an HP840C connected via USB to my G5 iMac.

It's actually even more simple in Tiger, as most of the .conf file edits have been done.

http://www.macosxhints.com/article.php?story=20021101062604548

Now, I can print to the HP from OSX machines

I can print to it from Windows XP

BUT There doesn't seem to be an easy way to print from an old Mac running OS9 to this printer - all the hints seem to involve going through a postscript file and then pushing this into the HP's print queue.

Frustrating!



[ Reply to This | # ]
Print from a Mac to a PC over a network using SAMBA
Authored by: nunofgs on Dec 12, '05 11:55:29AM

and if I don't have a username set up on the windows machine? i.e., there are users, just no passwords on them...



[ Reply to This | # ]
Print from a Mac to a PC over a network using SAMBA
Authored by: hdms on Dec 12, '05 12:15:29PM

I have been agonising for hours to achieve this sharing an Epson Stylus Photo R210 on a Windows XP Home box with my iMac G5 10.4.3 without success.

The closest I've got is the error messages "Unable to connect to SAMBA host, will retry in 60 seconds. Error: connection failed with error." or "Connection failed with error NT_STAUS_UNSUCCESSFUL".

I am the admin on the Windows machine, have a password, have shared the printer, the latest drivers are installed on both machines. Both machines have latest updates etc. I have enabled Printing for Unix and set TCP/IP Server status to 'Automatic' on the Windows box as other googlings have suggested, but nothing. The printer prints just find when connected directly via USB to either machine. File sharing is fine, too, from Mac to PC authenticating with the same username and password.

Any ideas anyone whilst I still have some hair remaining...???!!!



[ Reply to This | # ]
Print from a Mac to a PC over a network using SAMBA
Authored by: ms_t_rie on Dec 12, '05 06:39:55PM

Just as a pure guess, I would see if the Windows firewall is blocking it. (or the Mac one if you started it). You could turn off the Windows firewall, try printing, and if it works, then you'll know that's the problem. then you just have to allow the port used for printing through the firewall and reenable it. (better yet would be to keep the built-in one disabled and download one of the many free 3rd party firewalls that are vastly superior) If it still doesn't work, then the firewall wasn't the problem and you can turn it back on if you wish.



[ Reply to This | # ]
XP home uses "simple filesharing"
Authored by: qrulf on Dec 13, '05 06:56:01AM

I have exactly the same problem with Windows XP Home and I think it has something to do with Windows XP Home is using "simple filesharing", as described here:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;307874

Only on windows xp professional you can change between the simple filesharing and "real" filesharing with users and passwords. Unfortunately I cannot get samba on macosx to recognize the browse list from the windows XP home machine, using smbclient -L. That is usually no problem with XP pro and 2000 machines.

I have not found a way to fix this problem :-s

~ Jørgen



[ Reply to This | # ]
Print from a Mac to a PC over a network using SAMBA
Authored by: raday on Dec 16, '05 05:23:09AM

I have a similar setup and had the exact issue, I too was getting the NT_STAUS_UNSUCCESSFUL message.

The way I fixed it was to alter my samba URL to include my mac username without a password.

So my old samba URL was:

smb://workgroup/computer/printer
and I had to change it to:

smb://macuser@workgroup/computer/printer
Remember to modify the above URLS to mach your mac username, Workgroup, computer and printer.

[ Reply to This | # ]
Can't find the driver for my printer
Authored by: layla on Dec 13, '05 05:35:31AM

I have tried this so many times, everytime I start hoping again...
I can't find the exact driver in the list, nor in the esp list. I just reinstalled all Canon and gimp drivers from the Tiger instalation disk but still nothing - maybe it has a different name - I am looking for the i350 Canon driver.



[ Reply to This | # ]
Can't find the driver for my printer
Authored by: gboudrea on Dec 14, '05 05:47:01PM

I have the same problem with the ip1500.



[ Reply to This | # ]
Print from a Mac to a PC over a network using SAMBA
Authored by: jbrains on Feb 15, '06 06:40:04AM

I recently changed my password on my Windows machine, so I re-added my printer through the CUPS interface on my Mac. Now the printer doesn't show up in the Printer list from the Mac Print dialog. Where can I look for information about what's wrong?

Summary:
HP OfficeJet G85 connected to Windows 2000 server
Trying to print via SAMBA from Mac OS X client
Printer is listed in CUPS browser-based client; can print test page
Cannot see printer in Mac Print dialog; I have tried adding the printer through the Printer Utility--shows up in CUPS, not in Mac Print dialog.

Thanks.



[ Reply to This | # ]
NEC Superscript 1400
Authored by: bobosquish on Mar 19, '06 03:38:24PM

If you have an NEC Superscript 1400, you will find that NEC hasn't bothered with a driver for OS X 10.3 or 10.4. Gimp print also doesn't explicitly list this printer. Use the HP LaserJet 4 series driver and you can print!



[ Reply to This | # ]
Print from a Mac to a PC over a network using SAMBA
Authored by: Robert Lowes on Aug 03, '06 10:11:54AM

It may not be entirely clear from the instuctions given, but the username in the SMB string is the username of your OS X account, while the the computer/printer part refers to the PC's name on the network and the shared name of the printer.

For example, my G5 iMac is on a wireless network with my Dad's XP box. He has an old Epson Stylus Colour 600 hooked up to it via a USB to Parallel port adaptor, which I wanted to print from across the network.

In this case, the SMB string goes "smb://rob:password@mshome/fred/epson", where "Rob" is my Mac OSX username, ":password" is the password used to allow the Mac to see the PC across the network, "@mshome" is the workgroup name the PC and Mac are on, and "fred/epson" is the username of the Windows XP account and the printer.

I don't actually use a password to connect to the PC from the Mac, but left the ":password" part in the string, which seems to work perfectly. Please remember to remove quote marks when typing in your own string. :D



[ Reply to This | # ]
Print from a Mac to a PC over a network using SAMBA
Authored by: bfr541 on Jul 24, '07 08:31:56PM
he SMB string goes "smb://rob:password@mshome/fred/epson", where "Rob" is my Mac OSX username, ":password" is the password used to allow the Mac to see the PC across the network, "@mshome" is the workgroup name the PC and Mac are on, and "fred/epson" is the username of the Windows XP account and the printer.
Pardon my ignorance. I am trying to print to a new Brother Laser hooked up to a PC (parallel port) running XP Pro (Zone Alarm), and I am working on a Macbook running 10.4.10. I don't use a password to log into my Mac, but have set up two separate user accounts on the PC, (though on the network, my pc has a name--do I use that in this string at all?). I can see the printer, but get a variety of error messages. Once in a while, it seems to start to print, but then often get a "printing page 1, 28% completed..." and then gives me another error message.

[ Reply to This | # ]
Print from a Mac to a PC over a network using SAMBA
Authored by: golfntarheel on Oct 01, '09 07:09:35PM

Hello, Anyone, please help. I am fairly new to Mac and am trying to print wirelessly from my Macbook via a Linksys router and Dell workstation. There is no UBS port on my router, therefore the printer is hooked into the PC and then going to the router. I have read several articles including this one but with no luck. My macbook recognizes the printer and starts the print job, but it is immediately stopped. The printer is marked as shared on the PC. I have tried with the WIndows firewall on and off. Maybe I am not writing in the correct URL. I am confused as to the right strain of words to use. When one says /computer, which computer are you speaking of and when you say /printer, do I put the full name of the Epson printer or just what I named it on my PC? Also, what user name are you referring to? Please help because I am about to open the airport extreme box that I bought, would prefer to take it back and not spend $ 180. Thanks so much in advance.



[ Reply to This | # ]