View Single Post
Posts: 1 | Thanked: 0 times | Joined on Nov 2014
#27
Originally Posted by Taleydra View Post
I see that it works via wifi, but can it be configured to work via the internet, so I can use my phone to access my music while at work?
A bit late now, but I've figured out a solution for anyone that wants to control their home player over the internet. I use it for controlling my icecast stream.

1. Install avahi-utils via apt-get -- This gives Maemo the ability to use zeroconf/bonjour/whatever_the_cool_kids_call_it
2. On the same network, pair cuteplayer with the player.
3. Still on the same network, run
Code:
avahi-browse -rt _touch-able._tcp
Which should output something like:
Code:
= wlan0 IPv4 (16 character hex ID#1)                              _touch-able._tcp     local
   hostname = [XXXX.local]
   address = [192.168.X.XX]
   port = [3689]
   txt = ["Ver=131077" "iV=196618" "DvTy=iTunes" "DvSv=2880" "iCSV=65539" "OSsi=0x1F7" "CtlN=(Library Name)" "DbId=(16 character hex ID#2)" "txtvers=1"]
4. On a different network, we can now setup a SSH tunnel like so:
Code:
ssh -C -L :3689:127.0.0.1:3689 -N (username)@(host) &
5. And finally, put the info above into avahi to advertise the player to cuteremote (change everything after 3689 to match your info):
Code:
avahi-publish -s (hex id #1) _touch-able._tcp 3689 txtvers=1 DbId=(hex id #2) CtlN='(Library Name)' OSsi=0x1F7 iCSV=65539 DvSv=2880 DvTy=iTunes iV=196618 Ver=131077
6. Launch cuteremote and it should be working.

You can save your commands from 4 and 5 to a shell script for easy launching.
Code:
#!/bin/sh
ssh -C -L :3689:127.0.0.1:3689 -N (username)@(host) &
trap "kill $!" 0 1 2 15
avahi-publish -s (hex id #1) _touch-able._tcp 3689 txtvers=1 DbId=(hex id #2) CtlN='(Library Name)' OSsi=0x1F7 iCSV=65539 DvSv=2880 DvTy=iTunes iV=196618 Ver=131077
I've adapted this technique from a DAAP (Library Sharing) port forwarding walkthrough at http://www.leancrew.com/all-this/201...nneling-redux/