How-To: One iTunes Library With Multiple Computers

I recently set up a Mac mini in my living room to act as a media server. Instead of trying to update separate music libraries every time I added songs to my collection, I was just adding the music to the Mac mini’s iTunes library and streaming it my laptop. That worked fine until I tried to sync my iPhone. For obvious (copyright) reasons you cannot sync an iPhone to a shared library.
I wanted access to my music on both machines, but I did not want to share my Macbook Air’s library because the laptop would have to be on with iTunes running for the Mac mini to have the music. At this point, I had to choose between running separate libraries and updating them independently or figure out a way to run one library that updated whenever I added music from either machine. I chose the latter of the two options.
Some advantages of having one iTunes library:
- You can sync iPhones to any computer on the network
- You can add and edit playlists on any computer on the network
- You can add music on any computer on the network
Some things you should know before you begin:
- If you are using a laptop and want to take all of your music with you, this is not the method for you. All of the music is stored on a networked drive, so it is only accessible when on the network. (You could set it up so your music can be streamed over the internet, but this article will not go over that).
- You can only make updates to one music library at a time — you cannot have iTunes open on both computers and make changes. Make changes on one, then open the other one.
- You need to close iTunes on the computer you made changes on, and reopen it on all other computers to see changes
Those are all of the limitations I have found, so if those do not bother you, read on!
The Setup
The Mac mini runs Plex for watching movies, iTunes for managing my music, and is connected to the internet so we can watch our online video content (Hulu, South Park Studios and Snackfeed being my favorites). All of my movies and music are stored on a NAS that each computer on the network has access to.
A: Mapping iTunes Music Folders
The first thing we need to do is point each computer’s iTunes music folder to the same location. There are two different methods for this. If you have an NAS (Networked storage drive) follow procedure 1, if you are going to use one computer as the host (a server or tower that’s always on) follow procedure 2.
Procedure 1:
- iTunes > Preferences
- Go to the “Advanced” tab
- Click the “General” tab
- Under the “iTunes Music Folder Location” click the “Change” button
- Navigate to your NAS and create a folder called “Music”
- Click “Open”
- Click “OK” — you should now be back at a normal iTunes window
- Complete this on each computer. So in my case I did this with the Mac mini and the Macbook Air. When you have completed this procedure on each computer, move on to the next step – “B: Universal Library Setup”
Procedure 2:
Go to the computer that’s going to act as the music host (the one that will be sharing your music to all of your other computers). We are going to leave the iTunes music folder in the default location on this computer, but share it on the network so all of the other computers can see it.
- Go to Applications > System Preferences
- Click “Sharing” under the “Internet & Networking” section
- Click the check box next to “File Sharing”
- Under the “Shared Folders” section, click the plus arrow
- Navigate to your iTunes Music folder: HD > Users > Your Username > Music > iTunes > iTunes Music
- Click “Add”
- Close System Preferences. You’re done on this computer for now.
- Now go to a computer that is going to be streaming music from this one and continue to procedure directly below.

To stream music from the host computer to other computers:
- Go to a client machine.
- Open iTunes > Preferences
- Go to the “Advanced” tab
- Click the “General” tab
- Under the “iTunes Music Folder Location” click the “Change” button
- Navigate to the iTunes music folder we just shared from the host computer
- Click “Open”
- Click “OK” — you should now be back at a normal iTunes window
- Complete this on each computer. So in my case I did this with the Mac mini and the Macbook Air. When you have completed this procedure on each computer, move on to the next step –”Universal Library Setup”
At this point, all of your computers are accessing the same music library. Now all we have to do is make sure all the computers are accessing the same master index. Onward, to the universal library setup!
B: Universal Library Setup
At this point, both computers are accessing music from the same folder. Now we are going to make them access the same index file and album artwork. Once again, there are two different methods for this. If you have an NAS (Networked storage drive) follow procedure 1, if you are going to use one computer as the host (a server or tower that’s always on) follow procedure 2.
Procedure 1:
- Now we are ready to point our iTunes index to our LAN. While holding option, double click on your iTunes icon.
- A “Choose your library” window will pop up. Select “Create Library.”
- A window will pop up. Under “Where” select your a location on your NAS from the pulldown. Save as: “iTunes1″. iTunes will Launch. Close it.
- We’re done on this computer.
- Now go to a client computer and continue to “The client machine” below
Procedure 2:
Go to the computer that’s going to act as the music host (the one that will be sharing your music to all of your other computers). We are going to leave the iTunes index XML file in the default location on this computer, but share it on the network so all of the other computers can see it.
- Go to Applications > System Preferences
- Click “Sharing” under the “Internet & Networking” section
- Click the check box next to “File Sharing”
- Under the “Shared Folders” section, click the plus arrow
- Navigate to your iTunes folder where the XML file is stored: HD > Users > Your Username > Music > iTunes
- Click “Add”
- Close System Preferences. You’re done on this computer for now.
- Now go to a computer that is going to be streaming music from this one and continue to the procedure directly below.
The client machine:
- We are ready to point our iTunes to the shared index. While holding option, double click on your iTunes icon.
- A “Choose your library” window will pop up. Select “Choose Library.”
- A window will pop up. Navigate to the iTunes index XML file just set up on the NAS or shared from our host computer. You should see a folder called “iTunes1″. Open it.
- iTunes will Launch. Close it. We’re done on this computer. Repeat this procedure on all other client machines.
You’re now ready to roll. Simply add music to any computer you want, making sure iTunes is closed on all other computers, then when you are done adding your tunes, close iTunes and wait for Dropbox to upload your files. Once Dropbox is done uploading your updated library XML files, fire up iTunes on another computer and you will see your freshly added tunes. Enjoy!
NOTE: All the software mentioned is cross platform, so this method will work on your Windows machines as well!
Related research and analysis from GigaOM Pro:
Subscriber content. Sign up for a free trial.
So why store the music library on your local network, and your index on Dropbox? Why not store everything on your local network?
Great timing, I’m about to do the exact same thing.
Why did you choose to use Dropbox, rather than creating a share on the host machine and point all the client machines to use that?
Is the index format created by iTunes running on a Mac the same as the index created on a Windows Machine? In other words, Can I use an iTunes index created on a Mac to run the Windows Machine iTunes library?
Thanks
I don’t understand why using Dropbox… I have this setup, with the index on the LAN too.
I have the all my music on an USB disc attached to a Time Capsule. Every few days I copy the “Itunes”-folder of the main (ripping) Mac to all the “client” Macs. IPods will be synced with the main Mac.
Very interesting!
Could you just as easily use an iDisk or the local network?
I’m actually quite surprised that Apple hasn’t brought out a device that will let you load all of your music into one central location that can feed your iPod, iPhone, Apple TV, Mac, PC …. Sure you can share your library, but you can’t load music onto your iPod from a shared library … at least not without 3rd party software.
Yeah you can store your library XML file on the LAN too. I originally set it up using DropBox b/c I thought it might merge changes, instead of just overwriting with the newest copy. I’ll make some changes to the article though, thanks.
I’m running Boot Camp on my MacBook Pro with Windows XP- Is there a way that I can access and run iTunes on the XP side with my library from OSX?
Beware!
I have been running a setup up where 3 computers and an AppleTv is using the same library situated on a network drive.
My girlfriend, the AppleTv and me accidently tried writing to library at the same time. It messed up the entire disks index file and only disk warrior could save it.
It sucks, sucks, sucks that we can not easily maintain a shared library in the same household without breaking the DRM…..so darling who’s 9 Gig music library is allowed to live on the appleTv this week.
Also each week I have to delete a ****load of XML’s called “previous iTunes Library xx-xx-xx” for each time some comp tried writing a new version of the iTunes library.
An iTunes music collection should not be limited to one person. The same way my girlfriend can use my cd’s on the stereo, she should be able to listen to my mp3′s on our mutal computer/appletv.
Sorry about the rant, just bought noteburner and plan to free our music!
thanks for the heads up on good video sites in this article as well — liking http://snackfeed.com