Skip to content

Instantly share code, notes, and snippets.

@yukirii
Created November 26, 2013 03:56
Show Gist options
  • Save yukirii/7653241 to your computer and use it in GitHub Desktop.
Save yukirii/7653241 to your computer and use it in GitHub Desktop.
iTunes HomeSharing via VPN
#!/bin/bash
ssh -L 36890:127.0.0.1:3689 -N [email protected] -g &
sleep 3
trap "kill $!" SIGINT SIGHUP SIGTERM
dns-sd -P "iTunes Shared over VPN" _daap._tcp local 36890 localhost.local. 127.0.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment