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?

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:

Hi Guys,

I've solved the problem!!!! McAfee firewall settings were to blame, went into firewall settings and allowed Remote Desktop in System Services.

Sorry to have troubled you all but I hope this helps someone else.


 Graham
 08/29/2007  at  05:35 AM

I'm making the switch too, thank god! But I am having a tough time...

When I try to expand "my network places" on my pc, there is nothing there. Apparently I should be seeing "expand Entire Network, expand Microsoft Windows Network and finally expand Workgroup" but there is nothing there.

Can anyone advise?


 Pat
 09/02/2007  at  11:31 PM

You have no idea how helpful that was. I've been a Windows user since the start and I just switched to an iMac. Right from the start I could access files on my Windows PC from the iMac but could never do the reverse. I've been trying to figure out how to do this on and off for a few weeks. Your step by step instructions with images were fantastic. Thank you.


 chemist
 09/06/2007  at  08:15 PM

This was very helpful along with the comments from others and especially Lantz. Now how do I get Windows to recognize and print to the two printers on my Mac? They show up in the Workgroup but I can do an add printer.


 Tom
 09/09/2007  at  01:43 PM

I got up to trying to access my mac from the pc and my mac account usernmame and password arent' working. Any ideas?


 Lili
 10/13/2007  at  09:45 PM

Unfortunately I get an error code-36 when attempting to connect to XP-Home(SP2) from Mac (Tiger). Works great the other way, just not what I needed. Thanks for the info though!... and if you have any ideas I'm all ears.


 Drew
 10/18/2007  at  04:05 PM

how do i access an external hard drive with this method?

thanks


 Zhoe
 11/03/2007  at  11:39 AM

Would you consider updating this for Vista? A lot of the setup and the ways to get to screens are different.


 Larry
 11/07/2007  at  12:14 PM

Let me get more specific with my problems. I have 2. The main one is I can't logon to the Mac from the PC. The Mac shows up on the list of connected computers but when I click on it, it requests username and password. Nothing I enter seems to get in. I've tried names and PWs that successfully login from the Mac when I change accounts. Vista prefixes the username with the computer name but that doesn't seem to be the problem.
Here are a few details. The PC is a Toshiba notebook running Vista. The Mac is a recent Imac running Tiger. They are connected by a Linksys router. I've tried both wireless and hard wired. I've got sharing set for Windows Sharing, Personal File Sharing, Remote Login and Printer Sharing. The firewall is turned off on both machines. Any ideas?
My second problem is unreliable wireless connection. I can transfer PC files from the Mac and they work great when hard wired. But when I go wireless, the transfer keeps getting interrupted. But this only affects the connection between machines. Both systems have a reliable internet connection. They are in the same room, a few feet apart so distance isn't an issue. Any ideas?


 Larry
 11/08/2007  at  06:03 PM

Sharepoints is the perfect solution for accessing external hard drives and other volumes on your pc from your mac. google it, it's free!

Larry,

your login is your shortname in your login info on your mac (larrylastname most likely depending on how you set this up and you can't change it unless you re-install or add a new user)

the method i use to connect is simply use the shortname as the login and password so i never forget it, you can use whatever password you set up on the mac.

hope this solves that.

your wireless issue seems weird. if your mac is a laptop, you might want to re-insert the airport card to make sure it's running properly. i used to have to restart constantly to make my old powerbook g4 function right whenever i lost signal.

good luck!


 Zhoe
 11/08/2007  at  08:10 PM

Page 2 of 6 pages  <  1 2 3 4 >  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.