149 Comments

Summary:

One thing I have always wanted to do is be able to sync my iPhone or iPod with any computer. Lifehacker had an article a while back on doing this, but the software they used does not support the iPhone or iPod touch. So, I have […]

multipleitunes

One thing I have always wanted to do is be able to sync my iPhone or iPod with any computer. Lifehacker had an article a while back on doing this, but the software they used does not support the iPhone or iPod touch. So, I have developed a method to connect any iPod or iPhone to any computer to download the music or movies from that computer to the iPod or iPhone.

Once configured, you only need your iPhone/iPod, the USB sync cable, and a computer with iTunes to implement the hack (the idea being you always have your iPhone or iPod and the person with the computer has the iPod USB cable). It takes about 20 minutes to set this hack up and then only a few seconds to implement each time you would like to use it.

Things to Note

  • If you want to be able to do this hack on both Mac and Windows machines, you’re going to have to configure two separate iTunes libraries: one from a Mac and one from a Windows machine.
  • I was using an iPhone when writing this tutorial, so the iPod directions may vary slightly.
  • If you are using an iPhone or iPod touch: When you sync your device, the account last used to access the iTunes Store from the computer is synced to the mobile device. So make sure you sign out of your friend’s iTunes account before you sync your device, otherwise when you try to download the application via the app store on your phone you will be logged in as them.
  • This method does not work with DRM’ed music.
  • Using this method will let you plug your iPhone/iPod into any computer and listen to the music directly off of it. Whereas before, this was not possible.

What You’ll Need

  • Computer with iTunes
  • iPhone: Wi-Fi, USB cable, iTunes, phone
  • iPod: cable, iTunes, iPod
  • Software (Mac): Smultron, Hex Feind, IpodDisk (Open Source Free Software for Macs)
  • Software (Windows): Hex Edit, Pod to PC

Configure Your iPhone/iPod for Use as External Storage

You are only going to have to configure your iPhone or iPod to be used an external storage once.

  • iPhone: Download & Configure Air Sharing ($4.99)
  • iPod: Setup as hard drive
    1. Connect iPod to computer and open iTunes
    2. iTunes > Preferences > iPod Tab
    3. Click checkbox “Enable disk use”
    4. Close iTunes

Manually Manage Music and Videos On iPhoneiPod

We need to make it so we can simply drag songs onto our iPhone/iPod.

  1. Launch iTunes
  2. Connect iPhone/iPod
  3. Select the “Manually manage my iPhone/iPod” option
  4. Close iTunes

Create an iTunes Index On Your iPhone/iPod

If you want to be able to sync with both Mac and Windows computers you will have to make two separate iTunes index folders: one for the Mac and one for Windows boxes. So, just do this step both a Mac and Windows machine.

  1. Mount your iPhone/iPod as external storage device.
  2. Point the iTunes index to your iPhone/iPod. On a Mac: while holding “option,” double click on your iTunes icon. On a Windows machine: while holding “Shift,” double click on your iTunes icon in your start menu.
  3. A “Choose your library” window will pop up. Select “Create Library.”
  4. Under “Where” select the location on your iPod/iPhone from the pulldown. Save as: “iTunes1″. iTunes will Launch. Close it. If you decide to do this on a Mac and Windows machine, make a folder called “iTunes 1″ from the Mac and a folder called “iTunes 2″ from the Windows machine.

Editing Files On iPhone/iPod

You are only going to have to edit the files on your iPhone once. We need to edit those files so that whatever computer you connect your device to will think it can sync to your iPhone/iPod. I found this tutorial over at the Shiny Things blog. Thanks Andrew!

  1. On your computer navigate to your iTunes music folder. Macs: User> Music > iTunes. Windows: Music > iTunes.
  2. Right click on “iTunes Music Library.xml” and open it with a text editor (Smultron, or something similar, in OS X and Notepad in Windows)
  3. Look for the “Library Persistent ID”
  4. There will be a string of numbers and letters between the “string” tags. (In the screenshot below it is 2817B0BEDC7A2E5F). Copy this entry to another document for safe keeping.
    itunes_xml
  5. It’s time to edit the files on your iPhone/iPod. Go ahead and mount your iPhone/iPod and then navigate to the iTunes folder we created earlier.
  6. Find the “iTunes Music Library.xml,” and open it with a text editor.
  7. Look for the “Library Persistent ID.” First, copy whatever is between “string” tags to a text document for safe keeping. Next, Replace whatever is between the “string” tags with our key that we copied earlier. In our example we are replacing the ID on the iPhone/iPod with 2817B0BEDC7A2E5F
  8. Save the file and close it.
  9. Now find the file called “iTunes Music Library” and open it with the Hexeditor mentioned above in “What You’ll Need.” (On a Windows machine it is called “iTunes Music Library.itl”)
  10. Select “Find and Replace” from the Edit menu. Make sure “Hex” matching is selected (not ASCII). In “Find” enter the ID from the iPhone/iPod before we replaced it (The ID we put into a text document in step 7). In Replace, enter the ID we copied from the original computer (in our example it’s 2817B0BEDC7A2E5F). Choose Replace All, there should be one match.
  11. Save the file. Close the Hexeditor.
  12. We are now completely done configuring the iPhone/iPod. If you want to be able to sync to both Windows and Mac machines, make sure the do the all the steps listed above on both machines.

Getting Music From Other Computers (Finally!)

Getting music from computers that are not your home computer is the step that you will have to perform over and over again.

  1. Mount your iPhone (using Air Sharing) or iPod (as an external storage device)
  2. Point the computer’s iTunes index to the one on your iPhone/iPod. Mac: while holding “option,” double click on your iTunes icon. Windows: while holding “Shift,” double click on your iTunes icon in your start menu.
  3. A “Choose your library” window will pop up. Select “Choose Library.”
  4. Navigate to the “iTunes 1″ or “iTunes 2″ (depending on if you’re on Mac or a Window’s machine) folder on your iPhone/iPod and select “Open”
  5. iTunes will launch
  6. The actual iTunes library will be empty, this is OK. We aren’t adding things to the iTunes library, just to the iPhone/iPod library. Your iPhone/iPod should appear in the left hand column of iTunes. Click on your iPhone’s or iPod’s music library to select it. A playlist should appear in the main iTunes screen with all the music form the iPhone/iPod.
  7. Drag any music you want into your iPhone’s library. Make sure you drag into your iPhone’s/iPod’s library, not the iTunes library.
    00000211
  8. Since we are loading the library our iPhone/iPod is connected to, not the computer’s local iTunes library, we have to manually locate music on the computer to be able to add it to our iPhone or iPod. In OS X navigate to: User > Music > iTunes > iTunes Music. In Windows navigate to: My Documents > Music > iTunes > iTunes Music.
  9. When you’re done getting music, safely disconnect your iPhone/iPod and close iTunes.
  10. As a final step, we need to point the computer back to its original iTunes library. On a Mac: while holding “option,” double click on your iTunes icon. On a Windows machine: while holding “Shift,” double click on your iTunes icon in your start menu.
  11. A “Choose your library” window will pop up. Select “Choose library.” Point to the iTunes Music folder on their computer (Inside the Music folder on both Mac and PC).

Getting the New Music Back Onto Your Main Computer

iTunes won’t let you take the music off your iPhone/iPod, so we’re going to have to use third party software.

  1. Download iPodDisk (OS X Free Open Source iPod Ripping Software) or Pod to PC (Windows)
  2. I made a playlist on my iPhone called “New” so I know what to download.
  3. Import all songs from the “New” playlist.
  4. Empty the “New” playlist so that you do not accidentally download the same songs next time you sync.

And there you have it! I know it’s a lot to digest, so please let me know if you have any questions in the comments.

Related GigaOM Pro Content: Forget Syncing, Let’s Put Music in the Cloud!

  1. I understand the process but I don’t really get how this is useful.

    I’m sure I’m not getting something as to develop this must have taken some time and brain power and wouldn’t just be for nothing

    Share
  2. [...] Your iPhone/iPod With Any Computer: http://theappleblog.com/2009/02/26/sync-iphone-ipod-with-multiple-computers/ « előző | következő » Nitzan Lindenberg — 2009. 02. 26. [...]

    Share
  3. [...] Go here to read the rest:  Sync Your iPhone/iPod With Multiple Computers – TheAppleBlog [...]

    Share
  4. [...] not really be necessary, but thanks to theAppleBlog for the [...]

    Share
  5. Woooww…make sure that the user double check their hex code and anything else before they continue! Just be careful…

    Lair360,
    Best regards

    Share
  6. [...] here to read the rest:  Sync Your iPhone/iPod With Any Computer No TweetBacks yet. (Be the first to Tweet this post)Related ArticlesMarvell Plans $100 Computer [...]

    Share
  7. This seems like a lot of work. When I want to transfer music off of another computer, I simply use an external USB hard drive. In Vista: Go to iTunes, select a play list. When the play list is open, hit shit, and press the down arrow key, until all of the songs that you want are highlighted. If you have only one monitor, you need to have your iTunes window minimized somewhat, so that you can see your desktop. Create an iTunes folder on your desktop, and drag the highlighted songs into the folder. Next, go to “computer,” find the icon for your USB drive, and open it, then drag the contents of the folder on your desktop into it. Once it’s copied the songs, plug the USB hard drive into the other computer, go to the “file” tab in iTunes, and select “add file to library.” Navigate to the USB drive, select the songs, and you are done. It sounds like a lot of steps but it only takes about two minutes.

    Share
    1. I hit Shit so many times and nothing happens (LOL)

      Share
    2. Why not just use Air Sharing to make your phone a USB drive and pull stuff over. Then when you get home just pull it off on to your machine and then add it to your library? This is a complete waist of time.

      Share
    3. To BRIAN hahahaha that was classic lol. Totally funny lol

      Share
    4. BRIAN LOL a total classic!!!

      Share
  8. I should have been more clear…I meant to say use an external KEYFOB drive; they are cheap, and there are no format issues if you are going between macs and PCs.

    Share
  9. [...] and other free apps for synching an iPhone or iPod with any computer, no matter where you are, at TheAppleBlog. Especially check out the easy steps for getting (non-DRM) music from other [...]

    Share
  10. this is great, just imagine: i constantly want to put music on my iPhone at work and get it down at home. until now, i use the “swaptunes” app (only for jailbroken phones), basically it copies the iTunes library on the phone and you can switch to either one of them. this solution here seems to be more elegant, but also complicated… maybe someday there will be an app for that, too (and not just fot farts ;)

    Share

Comments have been disabled for this post