• Home
  • About
  • Archives
  • Books
  • Colophon
  • Policies
  • Resume
  • Tumblr

zanshin.net

because not enough websites start with the letter “Z”

Feed on
Posts
Comments
Tumblr
« Brain Food
An Open Letter To GoComics »

Sharing iTunes Beyond Your Subnet

Feb 5th, 2009 by mark

iTunes allows you to share your music library with other computers based on the same subnet of your network. Network addressing is too arcane a subject for this posting, but a simplified explanation will help. Each computer on a network gets a unique address, know as an IP address. (IP stands for Internet Protocol.) IP addresses have four sets of numbers, separated by a dot, e.g., 192.168.101.10. For licensing reasons Apple restricts the sharing of music to computers that have identical addresses except for the last portion of the IP address. If your computer has an address of 198.162.101.1, then any computer with an address of 192.168.101.* can receive your shared music.

Currently I have a situation where I’d like to share my music to a computer that isn’t on the same subnet. It turns out this is possible, if a bit cumbersome. I’m basing my instructions below on the much more detailed instructions I found the SSH Tunnel MtdWiki.  

Make sure you can establish a secure shell (ssh) connection from the client (listening) computer and the server (playing) computer. Open Terminal and type

ssh userid@192.168.1.1

where userid is the user account you have on the computer you’ll be using as the server. And where 192.168.1.1 is the IP address that machine has.

If this works then you are ready for the next step. If it doesn’t work, you’ll need to visit the Sharing preference pane (for Mac OS X 10.4.x) and make sure that Remote Login is enabled. While you are there, make sure that iTunes Music Sharing is also enabled.

Step two is to create a secure shell tunnel between the listening computer and the playing computer. One of the more useful features of ssh tunnels is the ability to forward a port from one computer to another. Services that listen to or respond at specific ports can be forwarded through a ssh tunnel to remote machines. iTunes uses port 3689 for sharing music. We want to establish a tunnel between our two computers that ties port 3689 on the listening computer to port 3689 on the playing computer. Something like this:

ssh userid@192.168.1.1 -N -f -L 3689:192.168.1.1:3689

Here’s a breakdown of the command:

ssh userid@192.168.1.1 is the normal secure shell login command. The -N flag makes it a non-interactive session, and the -f flag causes the whole command to run in the background, both of which free up your command line for other activities. The -L flag establishes the port forwarding from port 3689 on the listening machine to the same port on the playing machine.

Next you will need to install a Network Beacon, which allows iTunes to see the DAAP port (3689). The one I used is freely available from Chaotic Software. Since iTunes is geared to only “see” shared music from the same subnet, you need something to act as a proxy for the remote server. In this case Network Beacon acts as that proxy, allowing the copy on the listening machine to see the music on the playing machine through the secure tunnel and port forward we created above.

Here’s an image of how to configure the beacon on the listening machine:

 

With the beacon enabled, and the tunnel established, start iTunes on your listening computer and wait a few moments while the shared library is populated under the “Shared” heading in the sidebar.

Tags: itunes, ssh

Posted in nerdliness

Comments are closed.

  • Welcome!

    Mark H. Nichols is a software architect, martial artist, nerd, and all around good guy. He works at Kansas State University in Manhattan Kansas, and lives with his wife, two cats, a pair of 7-foot Kawai concert grand pianos, a violoncello, nearly a dozen computers, and a 2010 Honda Insight EX. You can read more about Mark, and this site, or explore the archives.
  • last 3 tweets

    • @thecurtain Do they have dry rub ribs? I haven't had good dry rub ribs since Charleston SC in about 2000. #hungrynow about 1 hour ago from Tweetie for Macin reply to thecurtain
    • @goldengateblond Ulanbator. about 6 hours ago from Tweetie for Macin reply to goldengateblond
    • Playing Towers of Hanoi with the tupperware bowls and lids. #fridaynight about 17 hours ago from Tweetie for Mac
    • Gimme an F. Gimme a R. Gimme an O. Gimme a Y. Gimme another O. What's it spell? FroYo! C'mon #HTC, I want my #FroYo. #incredible #android 01:12:19 PM July 30, 2010 from Tweetie for Mac
    • Create "ransom note" style phrases using typography from well-known brands. Try your name to really understand. http://iconscrabble.com/ #fb 01:14:04 PM July 29, 2010 from Tweetie for Mac
    • Run this on your work network: http://bit.ly/1sWqUc, it rates your DNS and generates calls from your security people. #voiceofexperience 08:27:09 PM July 27, 2010 from Tweetie for Mac
    • @jblanton BenPaper (http://hubpages.com/hub/How-to-use-Instapaper-on-AndroidDroidNexus-One) serves nicely as an @instapaper client. 06:40:47 PM July 27, 2010 from Tweetie for Macin reply to jblanton
    • I'm from the pronounce-individual-letters school, not the say-as-a-word school regarding acronyms. It's "ess-oh-ey" not "sow-ah." #soa 06:16:06 PM July 27, 2010 from Tweetie for Mac
    • @cholick I think my personal best is 74 days. Currently at 22 d 12 h. #macosx #uptime 03:20:45 PM July 27, 2010 from Tweetie for Macin reply to cholick
    • Comlete with magic Bluetooth fairy dust. http://bit.ly/a5Z79K http://bit.ly/aFhP83 #apple #magictrackpad 03:18:36 PM July 27, 2010 from Tweetie for Mac
  • Most Popluar

    • Installing PostgreSQL on Mac 10.6 (Snow Leopard)
    • Using jQuery to Create iGoogle Style Drag-and-Drop
    • geek. : nerdliness is next to godliness
    • Using SSHFS, MacFUSE, and Macfusion to Access Remote Filesystems
    • Solfège
    • Shotski’s Ring
    • Mac OS X 10.6.4 Update Fails
    • Solfège Slurs and Hooked Bowing
    • Apple Manifesto
  • Categories

    • diversions
    • elsewhere
    • family
    • health
    • life
    • links
    • meme
    • nerdliness
    • photography
    • random
    • relationships
    • social issues
  • Archives

    • Blogroll

      • Change.gov
      • Elfenbein Klaviermusik Notes
      • Shawn Blanc
      • Sibylle Kuder

zanshin.net © 1996 - 2010 All Rights Reserved.

Policies | Web Hosting: Blue Host