Friday, April 25, 2008

Reach local iTunes library over the net

Reach local iTunes library over the net: "If you want to reach your iTunes library from a remote Mac (a MacBook while traveling, for instance), you can enter these two lines in your Terminal app :

$ dns-sd -P 'any name' _daap._tcp. local 3690 localhost 127.0.0.1 & $ ssh -N user@server.example.com -L 3690:localhost:3689
Replace user with your short username on the remote Mac, and server.example.com with the public IP of the remote Mac. Don't forget to set up your remote router so that the ssh port (22) is forwarded to a Mac on which the SSH daemon is launched (Remote Login enabled on the Sharing System Preferences panel).

You can put this in a shell script (thanks to andersB):
#!/bin/bash dns-sd -P 'name of server' _daap._tcp local 3690 localhost 127.0.0.1 & PID=$! ssh -N user@server.example.com -L 3690:localhost:3689kill $PID
This will start the broadcaster, set up the tunnel, and kill the broadcaster once the tunnel closes. I use p...

"



(Via Clippings.)

No comments: