[crossdomain Problem] - dns/host through no-ip.com

More
12 years 3 months ago #3848 by karseras
Hello everyone,

I host a web page on my own pc and dns is redirected through no-ip.com to my dynamic ip at home. Usual stuff. :)

I installed the free version of the module and got it to work locally i.e localhost:8081. That means the location of playlist is http://localhost:8081/music/playlist.xspf and the mp3's are located in the same folder i.e music/song1.mp3 etc In the .xspf file the location is music/song1.mp3

So the files and playlist are on the same domain.

Wen I change localhost:8081 to the dns provided by no-ip ->> evripideskarseras.sytes.net/music/playlist.xspf I get the crossdomain error message.

I put the usual crossdomain.xml in my htdocs/ directory and still nothing happens.

I also tried changing the address in the .xspf file to the full http://evripideskarseras...etc.

ANy ideas ?

THanks in advance if anyone will be reading this.

Any ideas ?

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #3850 by admin
You have set this as url for your playlist :
Code:
http://localhost:8081/music/guns2.xspf

you have to change it to to the good ip, i guess this :
Code:
http://86.146.103.210:8081/music/guns2.xspf
The following user(s) said Thank You: karseras

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago - 12 years 3 months ago #3851 by karseras
already tried that man. doesn't work. thank you very much for the quick reply and for looking around ;)


edit: does not work in adifferent way though, playlist is loaded, but no audio.

-e.
Last edit: 12 years 3 months ago by karseras.

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #3852 by admin
It can not work with localhost url lt's sure !,

this is ok
Code:
http://86.146.103.210:8081/music/guns2.xspf

but you have also error in your palylist
Code:
<?xml version="1.0" encoding="UTF-8"?> <playlist version="1" xmlns="http://xspf.org/ns/0/"> <trackList> <track> <location>localhost:8081/music/01.%20Rocket%20Queen.mp3</location> <title>Rocket Queen</title> <annotation> The Strings of Fire: The Acoustic Tribute to Guns N Roses </annotation> <image>music/AlbumArtSmall.jpg</image> </track> </trackList> </playlist>

same the location url can not work as it's also set with locahost !

this is better :
Code:
<?xml version="1.0" encoding="UTF-8"?> <playlist version="1" xmlns="http://xspf.org/ns/0/"> <trackList> <track> <location>http://86.146.103.210:8081/music/01.%20Rocket%20Queen.mp3</location> <title>Rocket Queen</title> <annotation> The Strings of Fire: The Acoustic Tribute to Guns N Roses </annotation> <image>http://86.146.103.210:8081/music/AlbumArtSmall.jpg</image> </track> </trackList> </playlist>


then for finish this mp3

86.146.103.210:8081/music/01.%20Rocket%20Queen.mp3

have a size of 22.3 ko, this is not a normal size.

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #3853 by karseras
dear admin,

what you say I have already tried.

I said in my initial post that th eplayr works flawlesly in local mode (i.e localhost:8001)

when I change localhost to my_ip:port or DNS_from_no-ip the thing goes tits up.

te mp3 is 8.8mb. checked it and downloaded it.

Please Log in or Create an account to join the conversation.

More
12 years 3 months ago #3854 by karseras
dear admin,

problem solved:

i just saw that the location in the playlist must be changed to the actual ip as well.

very sorry for wasting your time like this.

Another question would be, why cannot I use the dns resolution instead of the actual ip ?

regards m8 !

Please Log in or Create an account to join the conversation.

Time to create page: 0.189 seconds

Download

Purchase
Download Directory

Login Form