isohedral wrote:I'm revisiting this thread because I'm experiencing the same problems with SSH tunneling. I'm trying to access my home share from work. I can set up the SSH tunnel without a problem. I can telnet and http to the local port at work and see firefly as a web server. I think the mdns stuff works, using any of avahi-publish, mDNSProxyResponder, or Network Beacon. The share appears in iTunes and in Banshee (but not in Rhythmbox). But when I click on the share, I get errors. I get the "-3260" error on iTunes and some kind of "Can't Connect" exception in Banshee.
Okay. so at work, you have a machine with some arbitrary ip address... let's say 10.1.1.25. And you've done something like:
ssh home-firewall -L 3689:mt-daapd-server:3689 -g
right?
So connections on port 3689 are forwarded to 3689 on the machine inside your home network that's serving daap, right?
Stuff to check:
1. Make sure you are using the -g flag, or it will only forward requests from localhost
2. Make sure that you are advertising the addrss of your work machine when pushing proxy mdns -- that is, you are advertising _daap._tcp from 10.1.1.25:3689.
Can it be a firewall problem, even if telnet and http work? Any thoughts on what I'm doing wrong?
Nope, almost certainly the clients are trying to connect to the wrong ip, or your ssh tunnel isn't accepting connections (firewall on the ssh tunnel server? 10.1.1.25 in this example?)
[/quote]
In a similar vein, perhaps there could be some way to test the connection from within the web-based administrative interface -- some sort of "download test song" button. Or would that not prove anything?
[/quote]
Probably wouldn't -- if you can see the web interface, all the daap stuff (and rsp) should work.
If you have firefox, you can try this though -- it will test rsp:
surf (with firefox) to :
- Code: Select all
http://server:port/rsp/db/1?limit=1
that will give you an ID for the first song.
In my case:
<response>
−
<status>
<errorcode>0</errorcode>
<errorstring/>
<records>1</records>
<totalrecords>6809</totalrecords>
</status>
−
<items>
−
<item>
<id>1</id>
<title>Candy Everybody Wants</title>
<artist>10,000 Maniacs</artist>
<album>10,000 Maniacs MTV Unplugged</album>
<genre>Pop 1980's</genre>
<type>mp3</type>
<bitrate>192</bitrate>
<samplerate>44100</samplerate>
<song_length>199575</song_length>
<file_size>4959688</file_size>
<year>2000</year>
<track>3</track>
<total_tracks>14</total_tracks>
<disc>0</disc>
<total_discs>0</total_discs>
<bpm>0</bpm>
<compilation>0</compilation>
<rating>0</rating>
<play_count>0</play_count>
<description>MPEG audio file</description>
<time_added>1114741642</time_added>
<time_modified>1114741642</time_modified>
<time_played>0</time_played>
<disabled>0</disabled>
<codectype>mpeg</codectype>
</item>
</items>
</response>
My ID there is 1.
Now I can fetch the song:
- Code: Select all
wget http://server:port/stream/1
Where the 1 at the end is ID.
If you can pull the song that way, everything is working networkingly.
-- Ron