Home
My First Mac



 Help Buying and Getting
 Started with Your New Mac

How Do I Network My Mac and PC?

Quick Scan

Macs and PC can share files from either computer's hard drive to the other.

You will need a wired or wireless router.

Follow instructions to the right for connecting your Mac to a Windows XP PC.

 

How Do I Network My Mac and PC?

Update for Snow Leopard (2/2010):

To set up Windows file sharing:

Choose Apple menu > System Preferences and click Sharing.

Select File Sharing in the list, then click Options.

Select “Share files and folders using SMB.”

Select the checkbox next to the user account that will be used to share files with Windows users, and enter the password for that user and click OK.

To help keep your computer secure, you may want to create a special account for Windows users in Accounts preferences.

Click Done.

Give Windows users your computer’s address and the name and password they should use to share files with your computer. Your computer’s address is visible in the Sharing pane.

 

UPDATE for Windows 7 and Snow Leopard: Jeramy found this helpful site for the latest (4/2010) directions.

 

Here is the orginal MFM article from August 2007:

You’ve bought your first Mac, but you are not ready yet to kick your PC to the curb? But how do you use both side by side and share files between them? The simplest way is to network them together and share files from one computer, but you can set them up so you can use shared folders on each of them at the same time.

Both Macs and PCs have built in networking to accomplish this. Connecting them together takes a bit of work but is not very difficult. Follow along as we set both of them up for file sharing.

Network, What Network??
A network is simply two or more computers connected to each other either directly or through some additional hardware. This article assumes you have your Mac and your PC connected together through a router. This can be your wireless router like an Airport Express or another brand, or a little box you connect via Ethernet cables.

Setting up the Mac
In order to get access to your Mac from a PC you need to change some settings in the Systems Preferences. Log on to your Mac with an Administrator account, open System Preferences from the Apple menu and select the Sharing Preference Pane.
 
Sharing Preference Pane

Select the Windows Sharing button and click the Start button to allow sharing. Now you need to choose an account you want to share with your PC. Click on the Accounts button and you will see a list of all the accounts on your Mac. Choose the account or accounts you want to share with the PC and click Done.
 
Sharing Users

Next you have to set your Mac to use the same workgroup as your PC.  Go to the Utilities folder and launch Directory Access. Select the SMB/CIFS item and click on Configure. In the drop down window type in a name for the workgroup you want to use. It can be any name but remember what it is because you will need to set the PC to use this same name. The default is Workgroup so we’ll go with that. You can leave the WINS Server item blank, we don’t need it. Click on Apply and your Mac is ready to share files with the PC.

Directory Access
 
Directory Access Work Group Name
 
Setting up the PC
Setting up the PC involves similar tasks. First, you must have a user account with a password. Even if it is the only account on your PC it is required so that when you connect from your Mac, the Mac and PC know you are authorized to access the files.

Select a folder you want to hold your shared files. I’ve created a folder called Stuff. Right click on the folder and select Sharing and Security from the pop up menu.

 Sharing Properties

In the Network Sharing and Security section, check both the Share this folder on the network box and the Allow network users to change my files. The second check box is needed if you want to be able to write to this folder from the Mac. If it is not checked then the folder will be read only. The Share name should already be filled in with the name of the shared folder. You can change it to something else if you want or leave it as the name of the folder. Click Apply, then OK. Windows will work for a little bit setting up the sharing. When it is done the shared folder should have a little hand holding it.

Next we need to make sure the built in Windows Firewall is set up to allow filesharing. Go to Start – Control Panel and select Windows Firewall. Click on the Exceptions tab and make sure File and Printer Sharing is checked.

 Windows Firewall

If you are running a security suite such as McAfee or Norton you will need to see if there is a firewall running with that application as well. If there is another firewall, you will need to find the settings to allow file sharing. You want to be sure the following ports are allowed access:
TCP 139
TCP 445
UDP 137
UDP 138

Next we need to get the IP address of the PC and make sure its network group matches the network group we defined on the Mac earlier. Go to Start – Control Panels and open the Network Connections control panel. Select Local Area Connection. Make a note of the IP Address in the Details pane in the lower left; you will need this address later.

 Network Connections

Time to Connect
Everything should be good to go to share files both from the PC to the Mac and from the Mac to the PC. We’ll start with the PC.

Press the Windows Key + E to get a new Windows Explorer window. Expand My Network Places, expand Entire Network, expand Microsoft Windows Network and finally expand Workgroup. This last item should match the name of the network we defined earlier. Once the Workgroup item is expanded you should see a list of all the servers connected to the Workgroup network. Double click the Mac you want to share with, in my case it is Dad’s G5.  You will get a window asking for a username and password. Enter the username and password for the Mac account you chose when we set up the Mac for filesharing and click OK. A window should now be open showing files on your Mac. You can navigate through these files just as you would any other PC. You can copy and paste just as if it was another folder on your PC.

 My Computer Window

Connecting from the Mac to the PC is a little bit different. From the Finder menu bar select Go then Connect to Server. In the server address field enter smb//youripaddress/ except enter the IP Address you wrote down earlier. So for my example you would enter smb://192.168.1.197/

You will get another window where you enter the workgroup, username and password. The username and password are the username and password you use on the PC. The Mac may fill in the username with the username from the Mac. Just delete it and use your PC username.

 SMB/CIFS Authentication box

Once you’ve entered all the info click OK. Another window will open showing the shared folders on the PC. Pick the one you want to use and click OK. A Finder window will open showing the shared folder as a mounted drive on the left and the contents in the main pane.

 Connect to box

That’s it you can now connect from your PC to your Mac and vice versa. Happy filesharing!!!!

Jeff Cyr is a Senior Systems Engineer with RockwellCollins in Melbourne, Florida. Jeff also has a small business offering requirements capture and other Systems Engineering services. His first Mac was a Performa 530 that he bought in the early 90's.


Did this help you get your Mac and PC talking? Have you found a simpler method? Let us know in the Comments section below!


DIG DEEPER

Mac OS X: Setting up Windows File Sharing

Mac OS X: About File Sharing

Mac OS X 10.1 or later: How to Connect to Windows File Sharing

Networking with a Windows PC

Mac OS X 10.4 Tiger: "Connection failed" error

 
 

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:

Just the article I'm looking for, thanks for sharing


 Andhika Krishananda
 08/25/2008  at  08:50 PM

This looks exactly what I need, except that OS X10.5.5 does not have the same folders as quoted. I can find file sharing under Sharing in Preferences. I can set File Sharing and Accoun, though the windows are not as set out above.

The Utilities Folder does not have Directory Access and Directory and Directory Utility do not seem to do what Directory Access is quoted as doing.

On the other hand I can GO from Finder to Find Server, for which I can enter an SMB address. I entered my PC's IP address (and last /), and got connection failed.

There did not seem to be any option on the Mac side to set a workgroup.

Has something changed, or am I doing this wrong?

Tks,

R


 Richard
 09/19/2008  at  11:14 AM

Is the original author still reading this forum?? Lots of questions, no answers. Jeff, we need you.


 pete
 09/22/2008  at  06:45 AM

anyone know how to do this on leopard now?


 dreedenator
 09/30/2008  at  12:13 PM

This post is too long for one message so I will split it.

This has worked for me but only using a LAN connection not wireless.

First disable Air Port.

Then under Windows disable any wireless connection by right clicking the taskbar icon and selecting disable.

Then connect both computers by a LAN cable.

In MAC

1 Under Preferences>Sharing tick file sharing.
2 Also click Options> click Share Files and Folders using SMB
3 tick the Account shown
4 Click Done
Sharing now shows a green dot and says Windows Sharing: On
5 Enter the computer name
Close Sharing

Open Network Preferences
1 Click Ethernet
2 Select Configure Manually

Now under Windows select Network Configuration, find the Ethernet or Local Area Network connection, click properties, and see what network details come up in the bottom of the left hand pane on the screen. I got a network address nnnn.nnnn.n.nn and a subnet mask 255.255.255.0

Back to MAC

In the ethernet configuration under Network Preferences enter the same network address as you got from Windows, but either decrease or increase the last digit by one - eg nnnn.nnnn.n.nn+1 or n-1. Enter the same subnet mask. Leave the other fields blank. Click apply.


 Richard
 10/06/2008  at  12:42 PM

Part 2.

Now the tricky bit. Back to Windows. If you have a firewall (could be in a virus scanner) ensure that you have selected something with a low level of protection - eg Home Network - which allows incoming and outgoing NetBIOS requests. You may have to edit the profile, but as both wireless connections are off, there should be no risk of infection providing you reset the firewall settings to your normal ones after transferring files and before enabling AirPort / the Windows wireless connection. I did not have to select a Port address, but the computers used 137 so you may have to allow it as well.

Now find Windows file sharing and enable it on the folders you wish to transfer. If the built-in Windows Firewall does not allow sharing, click so that it does.

Back to MAC

Now in Finder find GoTo Server - and type in smb://nnnn.nnnn.n.nn - ie the same Network Address as Windows is showing in the details pane.

This should come up with a request for your Windows password - and voila.

Or not. If not, I'm wholly out of ideas.

Best of luck.


 Richard
 10/06/2008  at  12:45 PM

I don't seem to be able to get this to work... the issue i have is on my PC it asks for username and passwords, i try everything that comes to mind, for instance on my mac it says (myname).local is what i should use when connecting from a subnet... still it doesnt work!
All i wont to do is transfer my itunes from my mac to my laptop, i'm not looking for a permenent network... Any help?


 Scott
 10/16/2008  at  03:08 PM

Why don't you just move your iTunes to a flash drive, transfer them that way and be done with it. You're giving yourself a lot of grief for a one-time transfer.


 pete
 10/17/2008  at  06:19 AM

For something not permanent, I'd also suggest you use an intermediary like a flash drive, iPod, or external HD.


 Chris Kerins
 10/21/2008  at  10:23 AM

It doesn't work. I don't have that!


 LuckyDuck
 11/17/2008  at  06:19 PM

Page 5 of 12 pages « First  <  3 4 5 6 7 >  Last »

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.

Most Popular Help Topics

Mac Link of the Day

iTunes for Mac: Moving your iTunes Media folder

Learn how to move your iTunes Media folder to a different location on your Mac.

-Apple.com

>> Archive