Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Reach local iTunes library over the net' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Reach local iTunes library over the net
Authored by: roach on May 08, '09 11:17:54PM
Instead of
dns-sd -P "name of server" _daap._tcp local 3690 localhost 127.0.0.1
I used
dns-sd -R "name of server" _daap._tcp. local 3690 localhost 127.0.0.1
Seems to work great. If I get excited I'll post a launchd script. :)

[ Reply to This | # ]
Reach local iTunes library over the net
Authored by: cyberkni on May 13, '09 07:12:43AM
This works!
One catch with it though:
I needed to allow remote hosts to connect to my ssh port forwards via the -g option(or GatewayPorts yes in ~/ssh/.config for that host)
ssh -gNf -L 3690:localhost:3689 remote-machine-with-itunes
dns-sd -R "remote itunes" _daap._tcp. local 3690 localhost 127.0.0.1 &



[ Reply to This | # ]
Reach local iTunes library over the net
Authored by: cyberkni on May 13, '09 07:17:27AM
I have a plist to run my dns-sd registration in the background. I created a ~/Library/LaunchAgents/com.apple.dnssd.plist file which looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">;
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.apple.dnssdproxy</string>
<key>OnDemand</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/dns-sd</string>
<string>-R</string>
<string>Home iTunes</string>
<string>_daap._tcp.</string>
<string>local</string>
<string>3690</string>
<string>localhost</string>
<string>127.0.0.1</string>
</array>
</dict>
</plist>

Load it up with launchctl load ~/Library/LaunchAgents/com.apple.dnssd.plist

[ Reply to This | # ]