08/25/2009, 03:19 PM
|
#101 (permalink) |
|
Member
![]() Join Date: Aug 2009
Location: Katy, TX
Posts: 933
Likes Received: 27
Thanks: 152
Thanked 88 Times in 70 Posts
|
Ahhhh, OK. Are you connecting through a router? I forgot about this step. You either need to put your physical computer where Ampache is installed in the DMZ or make sure that port 80 (or whatever port you configured) is accessible through your firewall. It is possible that you have to open a path from the router and open a hole in the firewall on your Ampache server.
|
08/25/2009, 03:25 PM
|
#102 (permalink) | |
|
Member
![]() Join Date: Aug 2009
Location: Katy, TX
Posts: 933
Likes Received: 27
Thanks: 152
Thanked 88 Times in 70 Posts
|
Quote:
Amarok downloads the metadata for the entire collection. You can then drag that into Amarok's playlist. I think with API this is the expected behaviour, especially since it was designed alongside Amarok's support for Ampache. What I dont get is why I can't create a stream from the web interface and have it play. Making things even stranger is that an Ampache stream is contained in index.php and the "filename" that music players see is just a parameter. This file has a .ogg extension even though it is usually an mp3. The test I did with ampachpre looks like it is using the .ogg extension (original file is a .flac which is transcoded to mp3 for streaming). Yet it played. |
|
08/25/2009, 03:50 PM
|
#103 (permalink) | |
|
Member
![]() Join Date: Jun 2009
Posts: 70
Likes Received: 0
Thanks: 0
Thanked 4 Times in 4 Posts
|
Quote:
Along the rocky process of attempting to get this to work (still to no avail), I think I came across your same issue. It was a simple fix for me actually. I ended up finding out that XP would re-name the config file that it makes you download and save into the ampache/config folder. XP adds an extra underscore "_" in there. I removed it and it immediately worked. |
|
08/25/2009, 04:00 PM
|
#104 (permalink) | |
|
Member
![]() Join Date: Aug 2009
Location: Katy, TX
Posts: 933
Likes Received: 27
Thanks: 152
Thanked 88 Times in 70 Posts
|
Quote:
|
|
08/25/2009, 04:02 PM
|
#105 (permalink) | |
|
Member
![]() Join Date: Aug 2009
Posts: 15
Likes Received: 0
Thanks: 5
Thanked 1 Time in 1 Post
|
Quote:
Code:
GET /server/xml.server.php?action=ping HTTP/1.1 Perhaps I'm just missing something here. |
|
08/25/2009, 04:11 PM
|
#106 (permalink) | |
|
Member
![]() Join Date: Aug 2009
Location: Katy, TX
Posts: 933
Likes Received: 27
Thanks: 152
Thanked 88 Times in 70 Posts
|
Quote:
Code:
pre.ip.address - - [25/Aug/2009:12:55:22 -0500] "GET /ampache/server/xml.server.php?action=handshake&auth=d9972e780070bd5906b1d1283cdf6ff554d90acf5b745c9422df77c795a5611c×tamp=1251222920529&version=350001&user=xxx HTTP/1.1" 200 146 |
|
08/25/2009, 04:24 PM
|
#108 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 70
Likes Received: 0
Thanks: 0
Thanked 4 Times in 4 Posts
|
Ok, so I downloaded the new version of AmpachePre 1.0.2, and used my IP address (that my router connects to, NOT the one my computer connects to by the way) with a /ampache behind it and it worked (while my pre was using Wi-Fi). The music streamed, etc, worked perfectly!
But then, as with each step of the way doing this entire process, I ran into another hurdle. I switched to EVDO so I can use this OUTSIDE of my house on the road for example, and of course, now it does not work. I used the same setup with the IP address my router connects to 000.000.000.000/ampache but no longer works now, searches forever. My router has the appropriate ports opened. Any ideas? |
08/25/2009, 04:28 PM
|
#109 (permalink) | |
|
Member
![]() Join Date: Aug 2009
Location: Katy, TX
Posts: 933
Likes Received: 27
Thanks: 152
Thanked 88 Times in 70 Posts
|
Quote:
|
|
08/25/2009, 04:32 PM
|
#110 (permalink) | |
|
Member
![]() Join Date: Aug 2009
Posts: 15
Likes Received: 0
Thanks: 5
Thanked 1 Time in 1 Post
|
Quote:
|
|
08/25/2009, 04:33 PM
|
#111 (permalink) | |
|
Member
![]() Join Date: Aug 2009
Location: Katy, TX
Posts: 933
Likes Received: 27
Thanks: 152
Thanked 88 Times in 70 Posts
|
Quote:
|
|
08/25/2009, 04:40 PM
|
#112 (permalink) |
|
Member
![]() Join Date: Aug 2009
Posts: 15
Likes Received: 0
Thanks: 5
Thanked 1 Time in 1 Post
|
Now I'm really confused, as not sure how I would possibly have an unreleased build. I pulled from the gallery this afternoon.
The short of it is, I do get a ping...and it proxies back to Ampache, but at this point that is the only request coming across. |
08/25/2009, 04:43 PM
|
#114 (permalink) |
|
Member
![]() Join Date: Aug 2009
Posts: 3
Likes Received: 0
Thanks: 1
Thanked 0 Times in 0 Posts
|
www.Dyndns.com
Go there so you can Point a hostname to a dynamic or static IP address or URL. very easy to do, then log into your router,go to "dynamic DNS" and put in your info..badabing! |
08/25/2009, 05:29 PM
|
#115 (permalink) |
|
Member
![]() Join Date: Jul 2008
Posts: 40
Likes Received: 0
Thanks: 1
Thanked 1 Time in 1 Post
|
fain,
thanks for putting together that guide. I believe I have everything setup correctly now, but when I go to log in through ampachepre, I'm getting a login error saying I probably have the wrong address. However, I can access ampache through the pre's browser and can login just fine there, so I know I'm typing in the correct address (this is running the pre on my home wifi). so 1) what do I need to correct to get ampachepre to log in correctly? 2) how do I set up my router or whatever needs to be done so that I can access ampache when I'm not at home over EVDO. Which ip address do I use if it's not that local IP as described in your how-to write up? Sorry for the q's, but as I said all this address stuff is a bit confusing for someone who doesn't deal with this a lot. I'm sure I'm not the only one confused about this. Thanks!
__________________
Current: Pre SERO plan 500 Former: 800w, 755p, 700p, 650p |
08/25/2009, 06:05 PM
|
#116 (permalink) |
|
Member
![]() Join Date: Aug 2009
Location: Katy, TX
Posts: 933
Likes Received: 27
Thanks: 152
Thanked 88 Times in 70 Posts
|
Sorry, let me clear that up. I was collecting information for fain yesterday of a working amarok login and a non-working ampachpre login. The first thing that jumped out at me is that Amarok is doing a handshake before authorizing the session. Fain added that in a build for testing. The handshake remains in the 1.0.2 code, apparently. Do you know how to use wireshark? If you do you might want to sniff the connection between your phone and ampache. That was very helpful.
|
08/25/2009, 06:07 PM
|
#117 (permalink) |
|
Member
![]() Join Date: Aug 2009
Location: Katy, TX
Posts: 933
Likes Received: 27
Thanks: 152
Thanked 88 Times in 70 Posts
|
I haven't tried via WIFI at home yet, but there is no reason to think it will work differently. And actually I do know that on WIFI I was still connecting to Ampache, but with the failed login problem.
|
08/25/2009, 06:13 PM
|
#118 (permalink) | |
|
Member
![]() Join Date: Aug 2009
Location: Katy, TX
Posts: 933
Likes Received: 27
Thanks: 152
Thanked 88 Times in 70 Posts
|
Quote:
If you are using a router you need to find out its WAN (internet) IP address. This is the one you should use for connecting to Ampache. As to the rest you will have to consult your router's documentation as it is different for each router. To access your Ampache installation from EVDO (regardless of where you are physically located) you will have to configure your router two do one of two things. You can either put your Ampache server in the DMZ, which exposes that computer to the internet using your WAN Ip address. If you put it in the DMZ and in particular if you are using Windows then you need to make sure that you are using a firewall on your server. But with the local firewall you have to make sure port 80 is open. The steps to do this depend on your firewall but shouldn't be too difficult to do. Alternately you can configure your router to forward port 80 to the internal address of your Ampache server. And if you have a firewall configured on your Ampache server, make sure you have port 80 open on it. |
|
08/25/2009, 06:16 PM
|
#119 (permalink) | |
|
Member
![]() Join Date: Aug 2009
Posts: 15
Likes Received: 0
Thanks: 5
Thanked 1 Time in 1 Post
|
Quote:
At this point I went from a failed ACL to no handshake taking place, but the communication is taking place and showing up in the logs (at least the ping). This may be a silly question, but looking back at most of the posts I feel like I may need to verify; there is nothing in place that is expecting a URL past the domain level, is there? For example, by virtual of name based virtual hosting and proxying requests, my Ampache server listens directly at the domain level, thus my AmpachPre configuration looks like ampache.server.com with no trailing URL after the domain. I'm making the assumption that it wouldn't, based on the fact that the ping is correct and is hitting my ampache server, but want to cover all bases. Thanks. |
|
08/25/2009, 06:28 PM
|
#120 (permalink) |
|
Member
![]() Join Date: Jun 2009
Posts: 70
Likes Received: 0
Thanks: 0
Thanked 4 Times in 4 Posts
|
I guess my main problem is the lack of the ability for computers (including the Pre on EVDO) OUTSIDE of my home network to connect to my computer via my WAN IP address.
I signed up for a domain at DynDNS and inserted it into my router, but still does not work. Within the network (all home computers) everything streams flawlessly. Confused. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|



