UNINNOVATE / Engineering At Its Finest

Archive for August, 2007

MyPhone: Share your iPhone’s music collection via WiFi

Released in late 2006, the Zune mp3 player was Microsoft’s attempt to establish itself in the portable music player market. This market has been dominated by Apple’s iPod since the initial release of the iPod in 2001.

The Zune was similar to the iPod in terms of price, size and capacity. However, it offered a unique wifi-based song sharing feature. Zune owners could “squirt” a song to another Zune owner. Unfortunately, the shared song was mired in DRM and could only be played three times before being inactivated. The feature was not a hit and the Zune failed to capture a significant share of the market.

Many called the Zune’s overly-limited wifi song sharing feature a missed opportunity. Apple’s new iPhone has also wifi support but it offers no access to music via wifi. I set out to fix this.

To address this, I’ve written an application called MyPhone. It runs on the iPhone and serves up the contents of the iPhone’s music library to any web browser on the same network. Using this application, you can listen to all of the music stored on your iPhone from another computer on the same wifi network. For example, you could take your iPhone to work and listen to its music library on your desktop or you could even listen to your music collection from another nearby iPhone.

Using MyPhone is very simple to use once it is installed and running:

  • From your desktop computer or other internet-capable device, point your web browser at http://your_iphone_address:1111/ . The “your_iphone_address” part should be replaced with the current ip address of your iPhone. You can find this by clicking on the wifi settings page on the iPhone.
  • Browse the list of music available on the iPhone. Music is sorted by Artist and Album.
  • Click on any song to listen to it in your web browser.

Unfortunately, installing applications on the iPhone is still very complicated at this point. If you are not experienced with iPhone hacking, you might want to wait until better tools are created to install iPhone applications. But if you want to try, here are the basic steps:

  1. Follow instructions on the web to get ssh running on your iPhone.
  2. Install iphone-binkit and python on your iPhone.
  3. Download MyPhone and copy it to /usr/local/bin on your iPhone.
  4. Log into your iPhone via ssh and run MyPhone with this command:
      • nohup python /usr/local/bin/MyPhone.py&
      1. Test out MyPhone from your desktop or laptop!

      Warnings:

      • MyPhone is written to encourage further development of applications that allow legal use use of your personal music collection with portable devices. It is not a fully-polished application and is meant for experienced users only. It is not meant to be a piracy tool, so please don’t use it for that.
      • MyPhone is NOT secure and is meant for your own personal use and experimentation. Be careful what wifi networks you join when MyPhone is running.
      • MyPhone is released as open source under the GNU GPL 2.0 license.

      Pictures:


      Picture: Listening to the iPhone’s music collection on a desktop via a wifi connection.


      Picture: Wireless sharing of a music collection between two iPhones on the same wifi network.

      30 comments