Playin a mp3 file from my htdocs folder

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
Pookie
-


Joined: 05 Jan 2005
Posts: 60
Location: Citrus Heights, CA

PostPosted: Wed Jan 05, 2005 3:15 am    Post subject: Playin a mp3 file from my htdocs folder Reply with quote

Is there a way to make the browser play a mp3 file i have located in the htdocs folder? heres the directory:

http://pookie/htdocs/TheIsleyBrothersChooseyLover

is that correct? If not how can i correct it.
_________________
~TRU~
Back to top View user's profile Send private message Send e-mail
Glitch2082
-


Joined: 02 Dec 2004
Posts: 194

PostPosted: Wed Jan 05, 2005 3:31 am    Post subject: Reply with quote

For all that i know, its up to the user(s) browser. IE, tends to try and open .mp3 files in wm, other browsers tend to just save .mp3 files. Usually acording to what the options the user selected.
_________________
int main() {
cout << "Im Pro Apache";
cin.get();
}
Back to top View user's profile Send private message Send e-mail
Pookie
-


Joined: 05 Jan 2005
Posts: 60
Location: Citrus Heights, CA

PostPosted: Wed Jan 05, 2005 5:07 am    Post subject: Reply with quote

no matter how i seem to put the link, IE doesn't do anything with the file. It keeps sayin "404 NOT FOUND". and im sitting here lookin at the file in this folder im directing it to. am i typing the path wrong?
_________________
~TRU~
Back to top View user's profile Send private message Send e-mail
Glitch2082
-


Joined: 02 Dec 2004
Posts: 194

PostPosted: Wed Jan 05, 2005 7:16 am    Post subject: Reply with quote

If you get 404 change this: http://pookie/htdocs/TheIsleyBrothersChooseyLover

to this:
http://your.ip.address/TheIsleyBrothersChooseyLover.mp3
-OR-
http://127.0.0.1/TheIsleyBrothersChooseyLover.mp3

Don't include htdocs in it, thats the public file so it doesn't need it. And 127.0.0.1 is localhost so only YOU can see what address, for public youll need to find your IP.
_________________
int main() {
cout << "Im Pro Apache";
cin.get();
}
Back to top View user's profile Send private message Send e-mail
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Wed Jan 05, 2005 7:18 am    Post subject: Reply with quote

You typed the path wrong , you are correct , htdocs is the folder you put all
your website files and directories in , but as a server address htdocs is just
a / followed by the directory or file that is being requested. LateR!

Correct Path -> http://pookie/TheIsleyBrothersChooseyLover
Back to top View user's profile Send private message Visit poster's website
Pookie
-


Joined: 05 Jan 2005
Posts: 60
Location: Citrus Heights, CA

PostPosted: Wed Jan 05, 2005 10:02 am    Post subject: Reply with quote

non of them links work lol. i guess IE doesn't stream mp3 files
_________________
~TRU~
Back to top View user's profile Send private message Send e-mail
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Wed Jan 05, 2005 10:07 am    Post subject: Reply with quote

It all depends what you have , do you get a download prompt at least ?
Back to top View user's profile Send private message Visit poster's website
Pookie
-


Joined: 05 Jan 2005
Posts: 60
Location: Citrus Heights, CA

PostPosted: Wed Jan 05, 2005 2:53 pm    Post subject: Reply with quote

no i dont get anything but a page that says it cannot be displayed
_________________
~TRU~
Back to top View user's profile Send private message Send e-mail
Pookie
-


Joined: 05 Jan 2005
Posts: 60
Location: Citrus Heights, CA

PostPosted: Wed Jan 05, 2005 3:43 pm    Post subject: Reply with quote

ok forget about that last part, it said downloading then quicktime came up in IE and started playing the file just fine.

Now i gotta find a port that works so users can access all my files. Comcast doesn't seem to wanna open most ports but i'll keep tryin. Can i use the ftp port (21)? or that wont work?
_________________
~TRU~
Back to top View user's profile Send private message Send e-mail
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Wed Jan 05, 2005 4:12 pm    Post subject: Reply with quote

If they are blocking port 80 they will most likely block other common server ports as well eg. ftp/telnet/ssh etc. Your best bet is to use a random number over 1024 and less than 65000. If you think that users will have problems remembering the port, use a webhop service to redirect to your site...
Back to top View user's profile Send private message
Pookie
-


Joined: 05 Jan 2005
Posts: 60
Location: Citrus Heights, CA

PostPosted: Wed Jan 05, 2005 4:43 pm    Post subject: Reply with quote

Im using No-IP.

This is the link i typed in the address bar and got it to play:
http://192.168.0.11:1028/TheIsleyBrothersChooseyLover.mp3
that 192 is my local IP, with port 1028

I went to No-IP.com to put a domain on my global IP
http://pookie.hopto.org/TheIsleyBrothersChooseyLover.mp3
my global IP is a 67.182 address. but when i put that address in the address bar i get Page cannot be displayed
_________________
~TRU~
Back to top View user's profile Send private message Send e-mail
Pookie
-


Joined: 05 Jan 2005
Posts: 60
Location: Citrus Heights, CA

PostPosted: Wed Jan 05, 2005 4:44 pm    Post subject: Reply with quote

can anybody access the mp3 by clicking this link to see if its done right?

http://pookie.servemp3.com/TheIsleyBrothersChooseyLover.mp3
_________________
~TRU~
Back to top View user's profile Send private message Send e-mail
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Wed Jan 05, 2005 5:51 pm    Post subject: Reply with quote

Quote:

Connection Failure Error

Offline Error
The connection was refused when attempting to contact 192.168.0.11:1028.


It looks like you have the wrong IP set at no-ip - you've set your hostname to point to the local IP address instead of your internet IP...
Back to top View user's profile Send private message
Pookie
-


Joined: 05 Jan 2005
Posts: 60
Location: Citrus Heights, CA

PostPosted: Wed Jan 05, 2005 6:19 pm    Post subject: Reply with quote

ok its set to the right IP, but now I CANT play the file so it looks like i better try another port and forward it
_________________
~TRU~
Back to top View user's profile Send private message Send e-mail
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Wed Jan 05, 2005 6:46 pm    Post subject: Reply with quote

Before you change it... Some routers cannot handle 'loopback' - this means a machine on the local network requesting a connection to the internet IP, in other words, your LAN PC trying to connect to your No-IP address. It may be that while it will not connect for you it is actually working fine for others - you need to use a proxy server or ask one of your friends to test the site for you while the server is running. If it is working, behind the router you will need to use your LAN IP to connect.
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group