BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 01-29-2006, 12:17 PM   #1
Cyclops
Talking BlackBerry Encyclopedia
 
Cyclops's Avatar
 
Join Date: May 2005
Location: Montreal
Model: 9800
Carrier: Rogers
Posts: 240
Default Need Help!!

Please Login to Remove!

How can I set up a server so I can upload my mp3s and download them with my Blackberry 7130e.

I have webspace from my ISP where I can upload them, I uploaded my mp3s to my webspace but I keep getting this error:

HTTP Error 406: Not Acceptable
The page you are trying to load is not supported by the browser. Please try loading a different page.

Then when I click on details:
200: Application can not accept the content
[application/octet-stream]

What am I doing wrong, I've never tried this before.

Thanks.
Offline  
Old 01-29-2006, 01:22 PM   #2
MegaBit
Talking BlackBerry Encyclopedia
 
Join Date: Nov 2005
Location: 98004
Model: 9530
Carrier: Verizon
Posts: 316
Default Need a .htaccess File

Quote:
Originally Posted by Cyclops
How can I set up a server so I can upload my mp3s and download them with my Blackberry 7130e.

I have webspace from my ISP where I can upload them, I uploaded my mp3s to my webspace but I keep getting this error:

HTTP Error 406: Not Acceptable
The page you are trying to load is not supported by the browser. Please try loading a different page.

Then when I click on details:
200: Application can not accept the content
[application/octet-stream]

What am I doing wrong, I've never tried this before.

Thanks.

You need to place a file in the folder/directory that you will be downloading from. It needs to be named ".htaccess", without the quotes. The contents are this:

AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/vnd.rim.cod cod
AddType application/java-archive jar
AddType audio/adpcm adp

Just use a text editor to create this file (Not Word, etc) and save it as a plain text file, then move it to the server. Note that many PCs will not show files like this because they are considered hidden so you may need to use an alternate name and then rename it once on the server with ftp software. A name like dot.htaccess is a suggestion for handling it on your PC.
Offline  
Old 01-29-2006, 02:36 PM   #3
Cyclops
Talking BlackBerry Encyclopedia
 
Cyclops's Avatar
 
Join Date: May 2005
Location: Montreal
Model: 9800
Carrier: Rogers
Posts: 240
Default

Quote:
Originally Posted by MegaBit
You need to place a file in the folder/directory that you will be downloading from. It needs to be named ".htaccess", without the quotes. The contents are this:

AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/vnd.rim.cod cod
AddType application/java-archive jar
AddType audio/adpcm adp

Just use a text editor to create this file (Not Word, etc) and save it as a plain text file, then move it to the server. Note that many PCs will not show files like this because they are considered hidden so you may need to use an alternate name and then rename it once on the server with ftp software. A name like dot.htaccess is a suggestion for handling it on your PC.
Is the file name suppose to be .htaccess or htaccess, i tried .htaccess and can't upload the file, I uploaded htaccess but still can't download my mp3s
Offline  
Old 01-29-2006, 03:56 PM   #4
TheRinger
CrackBerry Addict
 
Join Date: Dec 2005
Location: Everett WA
Model: 4
OS: iOS4
PIN: Whats a pin? lol
Carrier: AT&T
Posts: 582
Default

If your computer is running windows xp pro, you could always install the IIS component of windows (server software). Then you would have your own server, under your own control, that you can share with others (the address so they can download your stuff also) if you want. I suggest you keep it private tho.

If you do this, read up first. If you are really new to computers, get some help from a friend so your server will be secure heh.
Offline  
Old 01-29-2006, 04:56 PM   #5
Cyclops
Talking BlackBerry Encyclopedia
 
Cyclops's Avatar
 
Join Date: May 2005
Location: Montreal
Model: 9800
Carrier: Rogers
Posts: 240
Default

Quote:
Originally Posted by TheRinger
If your computer is running windows xp pro, you could always install the IIS component of windows (server software). Then you would have your own server, under your own control, that you can share with others (the address so they can download your stuff also) if you want. I suggest you keep it private tho.

If you do this, read up first. If you are really new to computers, get some help from a friend so your server will be secure heh.

I would say that pretty good with computers, but I never played aroud with the IIS component, I have it installed, I guess I'll do some reading up on it and give it a try.
Offline  
Old 01-29-2006, 05:20 PM   #6
MegaBit
Talking BlackBerry Encyclopedia
 
Join Date: Nov 2005
Location: 98004
Model: 9530
Carrier: Verizon
Posts: 316
Default

Quote:
Originally Posted by Cyclops
Is the file name suppose to be .htaccess or htaccess, i tried .htaccess and can't upload the file, I uploaded htaccess but still can't download my mp3s
Normally, you won't be able to move the correct file, .htaccess (with the period) because of its name, but you can move one without the period. However, you will need to rename the file on the server to have the period or it'll be useless. Also, this is for Linux or Unix servers, not MS.
Offline  
Old 01-29-2006, 06:16 PM   #7
ifonline
Magic Bananas
 
ifonline's Avatar
 
Join Date: Jan 2006
Location: Braselton, Georgia
Model: iP4S
OS: 5.1
Carrier: Verizon
Posts: 2,350
Default

Create a file in notepad with the following text:

AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/vnd.rim.cod cod
AddType application/java-archive jar
AddType audio/adpcm adp

Save the file locally, and call it whatever you want. Using an FTP client (or your ISP's web client if they offer it), upload the file to your server. Once uploaded, rename the file (including any existing extention) to .htaccess and be careful to name the file properly (note the leading period).

As stated above, this is for LINUX/UNIX.
Offline  
Old 01-29-2006, 06:29 PM   #8
Cyclops
Talking BlackBerry Encyclopedia
 
Cyclops's Avatar
 
Join Date: May 2005
Location: Montreal
Model: 9800
Carrier: Rogers
Posts: 240
Default

Quote:
Originally Posted by ifonline
Create a file in notepad with the following text:

AddType text/vnd.sun.j2me.app-descriptor jad
AddType application/vnd.rim.cod cod
AddType application/java-archive jar
AddType audio/adpcm adp

Save the file locally, and call it whatever you want. Using an FTP client (or your ISP's web client if they offer it), upload the file to your server. Once uploaded, rename the file (including any existing extention) to .htaccess and be careful to name the file properly (note the leading period).

As stated above, this is for LINUX/UNIX.
Well I'm not using Linux/Unix, I'm running Windows XP Pro, I have webspace from my ISP (Sympatico) if that helps, someone suggested to install Windows IIS but I have no idea how that works. I just want to upload some mp3s that I can share with my fellow BlackberryForums members, eventually also have some themes uploaded as well.
Offline  
Old 01-29-2006, 06:29 PM   #9
TheRinger
CrackBerry Addict
 
Join Date: Dec 2005
Location: Everett WA
Model: 4
OS: iOS4
PIN: Whats a pin? lol
Carrier: AT&T
Posts: 582
Default

Quote:
Originally Posted by Cyclops
I would say that pretty good with computers, but I never played aroud with the IIS component, I have it installed, I guess I'll do some reading up on it and give it a try.
If its installed, in administrative tools, open the "internet information services" snap in. thats where you can start/stop the server.

If ya click the + by your computer name, then the + by websites, you will see "default website". You can use that if you want, just make sure to remove some of the help files like localstart.asp, thats just a help page.

Also, you will want to run the iis lockdown tool, and the microsoft baseline security anylyzer, found respectively at:
http://www.microsoft.com/downloads/d...1-FD755D23CDEC
http://www.microsoft.com/downloads/d...displaylang=en

Once you have that all setup, make a test page (just one line of text, for testing), label it index.htm, and put it into the folder for the website (default unless you changed it is c:\inetpub\wwwroot\). Then make sure you have any firewalls configured to allow http port 80, set the router if you have one to forward port 80 to your computer, and then try to view your webpage. To view it, open internet explorer, and type into it http;//your.ip.number.here (it should look like http;//123.456.789.123, purposly used a ; so it wont make a link)

Then, you have to go back to the snap in (start>administrative tools>internet information services). Click the plus by the computer, the plus by websites. You will see "default website" (if you didnt rename it). Right click on default website (or whatever you named it) and choose "properties". On that window, along the top is some tabs. Look for the one that says "HTTP Headers". Click on that tab. Down near the bottom of that tab is a section that says "Mime map" and a button to the right that says "File types". Click that button. The little window that pops up, click on "New type". In the little window that pops up, on the top line, for file extension, put "adp" but WITHOUT QUOTES, and WITHOUT THE PERIOD! (not ".adp"!!) On the second line, without the quotes, put "audio/adpcm". Click ok, then ok, then ok, then ok (till all the windows are gone). Put a file you want on the blackberry into c:\inetpub\wwwroot\ then on the blackberry, put in the address in this format. http;//123.456.789.123/example.adp

That will download the ringtone named "example.adp" from your server.

EDIT: This is for a blackberry 710x series that uses adp ringtones. It will work for other types, but you have to add the appropriate mime types for the file type. ex: samsung phones use .mmf files. the mime type would be "mmf" "application/vnd.smaf".

EDIT 2: You dont need webspace from your isp. Your webspace is your computer on this setup. No storage limits (like 10megs or whatever from the isp). If you are on residential service, they might not like the server, but if its just you on it, and dont keep an index.htm file (that way if someone hits your address, they get "page cannot be displayed") they wont notice. Make your page named something like bbtones.htm and go to it by typing in the blackberry "http;//123.456.789.123/bbtones.htm"

Last edited by TheRinger; 01-29-2006 at 06:39 PM..
Offline  
Old 01-29-2006, 08:05 PM   #10
Cyclops
Talking BlackBerry Encyclopedia
 
Cyclops's Avatar
 
Join Date: May 2005
Location: Montreal
Model: 9800
Carrier: Rogers
Posts: 240
Default

Quote:
Originally Posted by TheRinger
If its installed, in administrative tools, open the "internet information services" snap in. thats where you can start/stop the server.

If ya click the + by your computer name, then the + by websites, you will see "default website". You can use that if you want, just make sure to remove some of the help files like localstart.asp, thats just a help page.

Also, you will want to run the iis lockdown tool, and the microsoft baseline security anylyzer, found respectively at:
http://www.microsoft.com/downloads/d...1-FD755D23CDEC
http://www.microsoft.com/downloads/d...displaylang=en

Once you have that all setup, make a test page (just one line of text, for testing), label it index.htm, and put it into the folder for the website (default unless you changed it is c:\inetpub\wwwroot\). Then make sure you have any firewalls configured to allow http port 80, set the router if you have one to forward port 80 to your computer, and then try to view your webpage. To view it, open internet explorer, and type into it http;//your.ip.number.here (it should look like http;//123.456.789.123, purposly used a ; so it wont make a link)

Then, you have to go back to the snap in (start>administrative tools>internet information services). Click the plus by the computer, the plus by websites. You will see "default website" (if you didnt rename it). Right click on default website (or whatever you named it) and choose "properties". On that window, along the top is some tabs. Look for the one that says "HTTP Headers". Click on that tab. Down near the bottom of that tab is a section that says "Mime map" and a button to the right that says "File types". Click that button. The little window that pops up, click on "New type". In the little window that pops up, on the top line, for file extension, put "adp" but WITHOUT QUOTES, and WITHOUT THE PERIOD! (not ".adp"!!) On the second line, without the quotes, put "audio/adpcm". Click ok, then ok, then ok, then ok (till all the windows are gone). Put a file you want on the blackberry into c:\inetpub\wwwroot\ then on the blackberry, put in the address in this format. http;//123.456.789.123/example.adp

That will download the ringtone named "example.adp" from your server.

EDIT: This is for a blackberry 710x series that uses adp ringtones. It will work for other types, but you have to add the appropriate mime types for the file type. ex: samsung phones use .mmf files. the mime type would be "mmf" "application/vnd.smaf".

EDIT 2: You dont need webspace from your isp. Your webspace is your computer on this setup. No storage limits (like 10megs or whatever from the isp). If you are on residential service, they might not like the server, but if its just you on it, and dont keep an index.htm file (that way if someone hits your address, they get "page cannot be displayed") they wont notice. Make your page named something like bbtones.htm and go to it by typing in the blackberry "http;//123.456.789.123/bbtones.htm"
I tried what you described above, I'm able to connect with 2 of my pcs by entering: http;//123.456.789.123 but not from my blackberry, it times out
Offline  
Old 01-29-2006, 08:37 PM   #11
Cyclops
Talking BlackBerry Encyclopedia
 
Cyclops's Avatar
 
Join Date: May 2005
Location: Montreal
Model: 9800
Carrier: Rogers
Posts: 240
Default

Just a question for you TheRinger, shouldn't I put router ip then my pc ip.
ex: http;//12.34.45.678/123.456.7.890/filename
Offline  
Old 01-29-2006, 09:37 PM   #12
MegaBit
Talking BlackBerry Encyclopedia
 
Join Date: Nov 2005
Location: 98004
Model: 9530
Carrier: Verizon
Posts: 316
Default ISP Server versus Local OS

When we say to create a file to upload to your ISP server, and that its for Unix or Linux, we are saying that you ISPs servers need to be running Linux/Unix and not your local PC. It makes zero difference what your local PC is running- its the server software on your ISPs web servers.

Don't spend a whole day configuring your PC to be a server if you are not serving a web site off it. And especially if you're paying your ISP for that service!
Offline  
Old 01-29-2006, 09:47 PM   #13
TheRinger
CrackBerry Addict
 
Join Date: Dec 2005
Location: Everett WA
Model: 4
OS: iOS4
PIN: Whats a pin? lol
Carrier: AT&T
Posts: 582
Default

Quote:
Originally Posted by MegaBit
When we say to create a file to upload to your ISP server, and that its for Unix or Linux, we are saying that you ISPs servers need to be running Linux/Unix and not your local PC. It makes zero difference what your local PC is running- its the server software on your ISPs web servers.

Don't spend a whole day configuring your PC to be a server if you are not serving a web site off it. And especially if you're paying your ISP for that service!
His isp's webspace is not configurable (as in mime types)
His isp's webspace could be running who knows what for server software (linux, windows, etc)

Quote:
Originally Posted by Cyclops
I tried what you described above, I'm able to connect with 2 of my pcs by entering: http;//123.456.789.123 but not from my blackberry, it times out
Is the address you are typing on the pc's and blackberry http;//192.168.0.x where x is any number, by chance? If so, that is your computers Private ip address assigned by the router.

You are 2 steps away.

1) in your router, look for port forwarding or filtering. you want it so anything on port 80 of the public ip that hits the router, gets directed at your computer. Ex: WAN IP in router 67,113.115.03 >forwards to> the pc on the network running the server 192,168.0.101

2) if this is windows xp, make sure an exception in the firewall allows port 80. If using another firewall instead, make sure it's port 80 is opened.

Then you type in http;//your.public.ip.here
that will get you to the index page you made and have in c:\inetpub\wwwroot\

Remember if you put in xxx.adp to directly download on the blackberry, without a page and link, would be http;//your.public.ip.here/xxx.adp
Offline  
Old 01-29-2006, 10:19 PM   #14
ifonline
Magic Bananas
 
ifonline's Avatar
 
Join Date: Jan 2006
Location: Braselton, Georgia
Model: iP4S
OS: 5.1
Carrier: Verizon
Posts: 2,350
Default

Quote:
Originally Posted by Cyclops
Well I'm not using Linux/Unix, I'm running Windows XP Pro, I have webspace from my ISP (Sympatico) if that helps, someone suggested to install Windows IIS but I have no idea how that works. I just want to upload some mp3s that I can share with my fellow BlackberryForums members, eventually also have some themes uploaded as well.
For LINUX/UNIX, I was referring to the server that will be hosting your files (Sympatico). Your local machine can be Windows or LINUX or whatever you want.
Offline  
Old 01-29-2006, 10:22 PM   #15
ifonline
Magic Bananas
 
ifonline's Avatar
 
Join Date: Jan 2006
Location: Braselton, Georgia
Model: iP4S
OS: 5.1
Carrier: Verizon
Posts: 2,350
Default

...or, you can send me the files and I'll post them to my BlackBerry storage space at http://if.5100bac.net/wp-bb if you like. At least that way you can make sure everything works before spending a huge amount of time setting up your ISP or IIS for this task.
Offline  
Old 01-29-2006, 10:33 PM   #16
TheRinger
CrackBerry Addict
 
Join Date: Dec 2005
Location: Everett WA
Model: 4
OS: iOS4
PIN: Whats a pin? lol
Carrier: AT&T
Posts: 582
Default

he has iis 99% setup. he can view his pages localy on his network, but not ota or from the internet.

just port forwarding left to do
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


New original ATV630D37N4 frequency converter ATV630D37N4 picture

New original ATV630D37N4 frequency converter ATV630D37N4

$2287.20



NEW Allen Bradley 20F1ANF098JN0NNNNN Frequency Converter 20F1ANF098JN0NNNNN  picture

NEW Allen Bradley 20F1ANF098JN0NNNNN Frequency Converter 20F1ANF098JN0NNNNN

$17999.00



Signal Frequency Counter LED Display Digital Frequency Counter 0.1MHz~65MHz Blue picture

Signal Frequency Counter LED Display Digital Frequency Counter 0.1MHz~65MHz Blue

$16.81



5 Pcs 50V Low ESR High Frequency Electrolytic Capacitors | You Pick | US Ship picture

5 Pcs 50V Low ESR High Frequency Electrolytic Capacitors | You Pick | US Ship

$5.99



Single To 3 Phase 7.5KW 10HP 220V Variable Frequency Drive Inverter CNC VFD VSD picture

Single To 3 Phase 7.5KW 10HP 220V Variable Frequency Drive Inverter CNC VFD VSD

$169.90



ABB ACH550-UH-059A-4 Variable Frequency AC Drive picture

ABB ACH550-UH-059A-4 Variable Frequency AC Drive

$699.99







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.