i need a the default Hosts file that comes with the american android.
i flashed a chinese rom and i dont live in china so i cant go on Youtube.com unless i change the hosts file from c.youtube.com to youtube.com.
this normally would be easy but youtube has over 200 lines with c.youtube.com in the hosts file.
thanks in advance!
EDIT: anybody? all you have to do is navigate to /etc/hosts/ in root manager then copy the text inside and paste it in a private message or post on here.
wrongbutton
Here is everything in my hosts file:
127.0.0.1 localhost
I hope I have been of great service to you.
Now if you really want to fix your problem, you may try adding:
72.14.204.91 youtube.com
What I would do though is delete them all and allow the US DNS server that you are routing through direct you to the host.
did you read my post at all?
Sent from my MB860 using xda premium
Uh, yes. My /etc/hosts file contains one line:
127.0.0.1 localhost
So there is your answer.
i deleted everything under #youtube and added 72.14.204.91 youtube.com then restarted, youtube works fine now.
thanks!
Sent from my MB860 using xda premium
No problem.
Just to note, you generally do not need to specify hosts in the hosts file, unless something is screwed up with the nameservers and dns through the ISP. It's interesting that the rom you flashed had edited those hosts, even though they have the 'great firewall'. China is weird...
yeah i was wondering the same thing. i hope i didnt come off a rude in my previous posts
Sent from my MB860 using xda premium
Related
ive been trying to fix my phone for a week now and i need the original.mbr file that is in the remove voodoo thread. the link in there wont save as an mbr for me only as an html. i know someone has to have the file out there that can host it elsewhere for me. please for the love of android someone help me!!!!!!!
You need to right-click on the link and select "save as".
Sent from my SCH-I500 using XDA App
If you still need it.
http://www.mediafire.com/?bz2gqm3k2pwrvj5
When I tried it, I saved it as original.mbr but if I went to properties it then said original.mbr.htm - and it didn't work when I tried to adb it to the phone. How do you save it as just the .mbr without the .htm adding back on?
Sent from my SCH-I500 using XDA App
you need to go into the folder options in windows so that files will display their extension
ktez said:
When I tried it, I saved it as original.mbr but if I went to properties it then said original.mbr.htm - and it didn't work when I tried to adb it to the phone. How do you save it as just the .mbr without the .htm adding back on?
Sent from my SCH-I500 using XDA App
Click to expand...
Click to collapse
Use a different browser.
thank you to the guy that actually met my request and hosted the file for me. Haven't tried it yet but I will first thing in the morning after work. Is the file supposed to only be 512b though? Al
Yeah, don't thank the original source, which works just fine, sans folks not understanding that browsers try to open files instead of saving them sometimes...
adrynalyne said:
Yeah, don't thank the original source, which works just fine, sans folks not understanding that browsers try to open files instead of saving them sometimes...
Click to expand...
Click to collapse
No need to feel unappreciated! I tried Firefox ie and chrome and had problems with each browser. I just want the damn file so I can fix my phone. All credit of course goes to you for the original source plus instructions. You are the man and as soon as I get my phone fixed keep your eyes peeled for a nice donation. Thank you for everything you've done good sir, but thank you most of all for your modesty lol
ktez said:
When I tried it, I saved it as original.mbr but if I went to properties it then said original.mbr.htm - and it didn't work when I tried to adb it to the phone. How do you save it as just the .mbr without the .htm adding back on?
Click to expand...
Click to collapse
Just for future reference: I'm betting you left-clicked on the link then right-clicked on the page that had "ƒ������ðŸ1�����ƒ���� 1��������ƒ���� 7��������������������Uª" at the top and selected "Save page as" What you were supposed to do was right-click on the link and select (for Firefox and Chrome) "save link as..." and then click save. This way it saves the original file.
I uninstalled adfree but ads in my browser are still being blocked. I believe I should have made the "revert" selection before uninstalling the app. How can I get back to a normal browser?
Sent from my DROIDX using XDA App
I'm not sure if this will work, but it's worth a try
Install adfree, hit revert, uninstall
You probably have to reboot the phone after reverting
This is because it permanently writes to your hosts file. I believe it can be found in /etc. Uninstalling the adfree app does not revert the changes unfortunately. (just providing an explanation...in case anyone was wondering)
Sent from my DROIDX using XDA App
To get ads back you would have to flash an sbf. Instructions can be found very easily if you look around.
Just wondering: why would you want ads back anyway?
Well, you could edit the hosts file and remove the entries added by adfree. They are all redirected to the loopback address at 127.0.0.1. The only entry in hosts should be localhost. You can open this file as a text file in any good file manager to see what I'm talking about.
i had to uninstall adfree also. The reason is, lot of links I want to go to, are redirected through these services (slickdeals.com ?) . Installing adfree means those links come up as broken when clicked.
Simply re-install adfree and hit revert. That was the solution. Thanks to all who replied.
Sent from my DROIDX using XDA App
Hi!
I've been trying to upload an .apk to my webhost (through ftp) and when I try to download it through the given url, the file doesn't download. Instead I only get text, just as if my host don't understand the file.
Any idea how I can fix this? Is it though .htaccess or what? /:
(I've tried to search this but with no luck)
First off I don't know too much about ftp but from what I do know I would imagine what you want to do would involve the .htaccess file in the apk's directory
My guess would be in the .htaccess file you'd have to edit/add the FilesMatch line
(if that doesn't work it may me just "Files" instead of "FilesMatch" - not sure)
Code:
<FilesMatch "\.(apk)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
Other alternatives I can think of are either:
Change the link from [B]ftp[/B]://your.ftp.org/blah/android.apk to [B]http[/B]://your.ftp.org/blah/android.apk when you give it out - but I realize this kinda defeats the purpose of using a FTP in the first place
Upload the .apk into a zip. That should force the 'save as' dialog
Hopefully this does the trick for you
**I hope this post looks correct - adding the html myself I may have messed up somewhere along the line, if it you see /LIST] or anything like that I'll fix it when I have access to a computer **
Sent from my Android using Tapatalk
kyouko said:
First off I don't know too much about ftp but from what I do know I would imagine what you want to do would involve the .htaccess file in the apk's directory
My guess would be in the .htaccess file you'd have to edit/add the FilesMatch line
(if that doesn't work it may me just "Files" instead of "FilesMatch" - not sure)
Code:
<FilesMatch "\.(apk)$">
ForceType application/octet-stream
Header set Content-Disposition attachment
</FilesMatch>
Other alternatives I can think of are either:
Change the link from [B]ftp[/B]://your.ftp.org/blah/android.apk to [B]http[/B]://your.ftp.org/blah/android.apk when you give it out - but I realize this kinda defeats the purpose of using a FTP in the first place
Upload the .apk into a zip. That should force the 'save as' dialog
Hopefully this does the trick for you
**I hope this post looks correct - adding the html myself I may have messed up somewhere along the line, if it you see /LIST] or anything like that I'll fix it when I have access to a computer **
Sent from my Android using Tapatalk
Click to expand...
Click to collapse
Geniuous! Worked like clockwork!
(I used the http://-link from the start, that's where it failed.. but the .htaccess content did it's job!)
1+Thanks! ^^
hi! I've been trying to download files using my browser. I also tried to download videos (it usually downloads streaming videos when you choose 'internet' for the action.. but it always fails at start -- 0kb.
I used opera mini, chrome, and stock browser and still having the same results.
when I'm on repencis 3.5 or stock rom, I don't get this prob. but with other roms (now I'm using blackstar 2.1), it happens.
I'm wondering if there's any mod that makes this happen or any script I could do to solve this?
I already tried deleting ALL files in init.d folder and still nothing. any help will do. thanks!
Extract your rom and go to System>Etc
Look if you have a hosts file.
Open it with notepad.
Delete everything.
Replace it with this:
#
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost
127.0.0.1 local
Click to expand...
Click to collapse
Not sure if it will work though.
kitbeks said:
hi! I've been trying to download files using my browser. I also tried to download videos (it usually downloads streaming videos when you choose 'internet' for the action.. but it always fails at start -- 0kb.
I used opera mini, chrome, and stock browser and still having the same results.
when I'm on repencis 3.5 or stock rom, I don't get this prob. but with other roms (now I'm using blackstar 2.1), it happens.
I'm wondering if there's any mod that makes this happen or any script I could do to solve this?
I already tried deleting ALL files in init.d folder and still nothing. any help will do. thanks!
Click to expand...
Click to collapse
Try to change your kernel or edit build.prop for network tweaks..
Search in xda you will find how to tweak build.prop.There are many tweak codes you will find for network managing...:thumbup:
Don't forget to hit thanks button if I helped you...
Sent from my GT-S6102 using Xparent BlueTapatalk 2
-Get your self a file browser (e.g I have Root Explorer)
-Go to /etc/hosts
-Open the hosts file in a text editor
-Delete everything apart from 127.0.0.1 localhost
-Your Done!!
Sent from my Moto G
GameAware said:
-Get your self a file browser (e.g I have Root Explorer)
-Go to /etc/hosts
-Open the hosts file in a text editor
-Delete everything apart from 127.0.0.1 localhost
-Your Done!!
Sent from my Moto G
Click to expand...
Click to collapse
I have the problem and the only line in the file is 127.0.0.1 localhost
Sent from my Motorola Moto G XT1032
Me too only line I have is as above
We need a fix some expert please help
Sent from my XT1032 using Tapatalk 2
The solution would be to just delete the hosts file and restart the phone. On reboot play store will rebuild the hosts file and you should be able to connect.
Sent from my XT1033 using Tapatalk
This issue might not be due to host file... Even people running stock are having the issue and there host file will be exactly same as specified in OP
madman said:
This issue might not be due to host file... Even people running stock are having the issue and there host file will be exactly same as specified in OP
Click to expand...
Click to collapse
Hmm.. but deleting the host file and restarting the phone has always worked for me, whether i was on stock rom or custom... the other solution i can think of if this does not work is log out of google and login with a different id.. i think read this somewhere when i first faced the issue, but never had to use it..
Sent from my XT1033 using Tapatalk
Hi I get this error " hosts file cannot be deleted" using file explorer on stock kitkat
Sent from my XT1032 using Tapatalk 2
Problem is not the host file. we need an ota by motorola to fix this "connection drop".
"Guides" like this should be deleted immediately as OP has no tiniest clue on what he is talking about. If access to Youtube/PlayStore were blocked via hosts file - it wouldn't work at all. Ever. Plus, a lot of guys with this issue are on stock ROMs with no root access and with locked bootloaders, so their "hosts" file can not be modified at all.
Being that said, OP is either:
a) troll
b) app developer (deleting hosts file would disable add blocking )
c) just another ignorant person
Sent from my XT1032 using xda app-developers app
MS. said:
"Guides" like this should be deleted immediately as OP has no tiniest clue on what he is talking about. If access to Youtube/PlayStore were blocked via hosts file - it wouldn't work at all. Ever. Plus, a lot of guys with this issue are on stock ROMs with no root access and with locked bootloaders, so their "hosts" file can not be modified at all.
Being that said, OP is either:
a) troll
b) app developer (deleting hosts file would disable add blocking )
c) just another ignorant person
Sent from my XT1032 using xda app-developers app
Click to expand...
Click to collapse
Sorry mate but this trick helped me, so I was just sharing it because it had been an issue. No need to cry
Sent from my XT1032 using XDA Premium 4 mobile app
AndroidHtc101 said:
Hi I get this error " hosts file cannot be deleted" using file explorer on stock kitkat
Sent from my XT1032 using Tapatalk 2
Click to expand...
Click to collapse
You will definitrely need Root for doing changes in hosts file.
Thus it is impossible that host will can be issue on unrooted stock as its hostfile is almost blank (localhost doesn't count)
denzel09 said:
Problem is not the host file. we need an ota by motorola to fix this "connection drop".
Click to expand...
Click to collapse
well I can say that I have seen this isssue on several other phones as well. My secondary phone is also having the issue. My friends are also having this issue on other phones. So definitely not Moto's problem either I would say.
zazzy24 said:
The solution would be to just delete the hosts file and restart the phone. On reboot play store will rebuild the hosts file and you should be able to connect.
Sent from my XT1033 using Tapatalk
Click to expand...
Click to collapse
Ignore the above, it is 100% completely wrong.
scott_doyland said:
Ignore the above, it is 100% completely wrong.
Click to expand...
Click to collapse
How do u know its completely wrong? Have you tried it and didn't work? Obviously it needs root access.. don't dismiss a method without trying it.. i have used it on samsung y, samsung s duos as well as moto g with full success.. and u must have a 100% correct method for sure, y don't u mention it?
Sent from my XT1033 using Tapatalk
zazzy24 said:
How do u know its completely wrong? Have you tried it and didn't work? Obviously it needs root access.. don't dismiss a method without trying it.. i have used it on samsung y, samsung s duos as well as moto g with full success.. and u must have a 100% correct method for sure, y don't u mention it?
Sent from my XT1033 using Tapatalk
Click to expand...
Click to collapse
You said:
'On reboot play store will rebuild the hosts file'
That is just completely wrong. You really think an app (which BTW never uses root) rebuilds the hosts file!!!
scott_doyland said:
You said:
'On reboot play store will rebuild the hosts file'
That is just completely wrong. You really think an app (which BTW never uses root) rebuilds the hosts file!!!
Click to expand...
Click to collapse
Again have u ever tried it? When i say you require root access, i mean to say you require it to delete the hosts file as you will not be able to do so with the stock file manager without root access..
Sent from my XT1033 using Tapatalk
Thus is not working for me right now? Changed host file multiple times rebooted nothing... Host file remains the same and the market still no connection. Any other ideas?
Sent from my XT1032 using xda app-developers app
ykdr-scott said:
Thus is not working for me right now? Changed host file multiple times rebooted nothing... Host file remains the same and the market still no connection. Any other ideas?
Sent from my XT1032 using xda app-developers app
Click to expand...
Click to collapse
As I said, hosts file is irrelevant here, unless its been altered to have an entry for the hostname of the playstore in it which points to an invalid IP. But let's face it, that is not the case.
If you have no connection at all though then your issue is different to the original issue in this thread.
I want the moderator to ban me.
Very nice.It helps me about my gadget.