yashsingh1/xdaforums huggingface dataset:
[Android General] crosspause:
I have the easiest fix....

Since the android technical language & steps are not easy, (:confused:and I m one of those kinds)... I fixed this issue by following steps:good:

1.Download Adaway ...adaway is not available in playstore ...use your browser & Google

2.Update the apk and host files

3.reboot the phone

4.Add your account by any method..i.e. settings>add account or youtube or Gmail

Cross:):):):)
[Android General] al52025:
Can someone please explain why this happens? I have to change the host file like every 2 months because I get this problem. If it's because Google changes an ip address how do people that are on stock roms and not rooted fix this problem. Never heard of people completely stock having this problem
[Android General] asim.kuddoos503:
Thanks

Thanks a lot Bro...

:D Fixed
[Android General] xdctrl:
Thanks

Solution 2 worked fine and it's so great

Thanks!:D:D:cool::cool:
[Android General] QYOBZ:
Glad it works on you...
[Android General] carlosray01:
none

I erased thr host now its working..
[Android General] evantheis:
Alright so what if we unrooted? I unrooted my phone updated and factory reset my phone and now I can't root my phone so i'm stuck. What should I do? I'm on an AT&T Samsung Galaxy S5 Active and I can't download the stock rom because the only place it is on takes outragous amounts of time.
[Android General] alforati:
solved with another way

Hey guys,

just wipe dalvik cash!

And everything will work fine.

Tested.
[Android General] Ahmad S. Doulat:
Thank you so much dude u're the BOSS, worked for me
[Android General] NaZzAtAzEr:
HELP! :confused:

I don't know if this is because of the freedom app because it was fine for a few days after installing it. All the Google apps apart from Google play works. I Previously I couldn't get them to work until I came across this guide. I did the second step. I still cant connect to Google play unfortunately.

""- Go to Root Explorer and Mount R/W then delete Hosts file under system/etc/

- Reboot

- Shutdown & Boot to Recovery <---------

- Wipe Cache/Dalvik Cache <--------- I don't understand these two steps. My phone is a Chinese phone and I don't read Chinese so I don't know what to do in recovery mode

- Reboot

- Presto! back to normal.

Edit:

Removed Attached Files you may download it on Google Playstore. :)""

Will anyone help?

Thanks
[Android General] kiridhruv:
OMG!!..

I was fool to re-flash many times... i read this thread and my error was solved in second hahahha just a " #" :D

Thanks a lot :D
[Android General] pa04ris:
Thanks!

So annoyed that I had to go through this again, but was happy to come across your instructions again because it worked the first time, and it worked again. I used method two both times. Thanks again!
[Android General] sjdano:
Good Info!!!

Worked Great thanks... I just added # to both lines and BOING!!!:D
[Android General] H4ckerFrom95:
Thank u thank u thank u!

This happened after i modded play store with luckypatcher. it happened on my sisters b1-730hd and my brothers memo pad hd7, and on multiple versions of bluestacks. i used this method to fix it on the b1-730hd ill tell u how it goes on the other two :P thanks a ton
[Android General] himanithakkar:
it worked

heyy thanks alot :):)
[Android General] jabbarh123:
when i try to open 'hosts' file through totalcmd it displays "not enough memory" .. I have 6 gig!!
[Android General] jackharvest:
THANK YOU. After re-imaging over and over again, it was indeed the hosts file that was jacked up. Why must I always experiment with the stupidly dangerous apps...
[Android General] Atharkhan101:
"Freedom'' app was the culprit. Thank you (already clicked Thanks button) :D
[Android General] shockwave4000:
Really need help

I've somehow managed to not be enabled to install su binary on my note 4 sm-n910f so I am no longer rooted meaning I can't change the hosts file meaning Google doesn't work. Could somebody please help

??. Ty in advance
[Android General] choosymoron:
This is really a great solution, works perfectly fine via Total Commander, Thanks a ton XDA Devs as always you guys are the best :)
[Android General] Shafi_49:
Great help

Thank you very much...

I have tried adding # & it worked...

:)
[Android General] xcinicox:
thanks

thak you so much.

method 1 works for me.
[Android General] Abdullah Tahir:
love ya!

Thank you very much.the 2nd method worked fine.
[Android General] adarsh29:
Please Help!!!!!

What if there only 1st ip exist 127.0.0.1 localhost?
[Android General] crazd:
worked
[Android General] Aiden22:
THANK YOU

Thank you so much this worked perfectly!
[Android General] indrooo:
thanks alot, it fixed my problem :D
[Android General] ShantnuDON:
Thanks

I am realy thankful to you
[Android General] The Analog Kid:
Just sharing my own solution: AdAway app. Oh yes and all by incident really, since I wasn't looking for AdAway to fix such a problem . In fact I've noticed the particular issue fixed, later, when some other app asked me to login to my google account (which I have tried many times before to no avail) so, reluctantly, I did it... and to my surprise, this time I was able to login successfully. Once you think, since AdAway has a lot to do with host files, well... it's actually not that weird at all. Best thing is, I didn't had to perform all that PITA procedures working for every one else!... and maybe you don't have to reflash a ROM either!

:D
[Android General] bartleby999:
Thank you so much man. This helped me, but like an idiot I lost my temper before checking this thread and factory reset my Gs5. But even after a factory reset I couldn't connect to Google. But YOU helped me, so again, thank you VERY much.
[Android General] Rohith el Raj:
Kudos Works fine now!
[Android General] ReallyAngryWithDroid:
It does not let me edit the host file. I do not see a R/W button. it does not exist on my Total Commander. I cannot connect to google play or sign in on my phone. I would much rather not factory reset. I am using a galaxy s4.
[Android General] The Analog Kid:
I hate when no one answers your questions, don't you? So... here I go: if your total commander does not have an R/W option, more likely that's because your device is not rooted. Whatever the solution (I've posted mine in this thread) your device requires to be rooted... However, if your device is already rooted, you can try another file explorer (I've found ES3 explorer to be the most easy to use, but that's me) or... try downloading AdAway app. It worked for me. But again, it requires a rooted device
[Android General] criscr7:
thank u,i have successfully login to my google account.but play store has stopped working. plz tell me solution
[Android General] The Analog Kid:
Have you tried a reboot?
[Android General] Krizz Reck'd:
issue with Play Store

Hello, I did this tutorial to fix problem with signing in and stuff, I can add accounts, but cannot access my Play Store, as it says the message: Check your connection and try again, yet I'm

clearly connected to a network.

EDIT: Also my phone is an Samsung Galaxy S3, Android version 4.4.2.
[Android General] startas:
I'm too having difficulties accessing play store app/internet website from s5 + android 5.0 - i'm connected to the internet via wifi, i can open other websites, so it works, but i cant connect to play store app and cant connect to google play site with chrome browser also .... this is madness... my host file is clean - only one line with "127.0.0.1 localhost", does anybody have a real solution to this problem ? play store shows "there was a problem communicating with google servers. try again later."
[Android General] The Analog Kid:
AdAway...

Check post #304, that's one real solution that worked for me... just, if it works for you too, hit the thanks button there. Please?
[Android General] dpe123:
I am facing this problem for the last two days. I was first using custom rom but then this problem came and I tried several different roms and even edited hosts file but it didnt work. I unrooted my Xperia play and flashed it with its official firmware but this "reliable connection" problem still persists. Please help me resolve this problem
[Android General] The Analog Kid:
... And what is that you have tried to solve the problem?
[Android General] dpe123:
I edited hosts file by method 2 but that didnt work. Then i unrooted my device and flashed with it official gingerbread firmware but that was useless as I am still facing the problem
[Android General] The Analog Kid:
And what about trying AdAway? I've mentioned it so many times, that it seems I own the rights! Eventually, if your device is rooted, you'll end up installing it anyway... believe me. Give it a try
[Android General] dpe123:
Finally I got it working. I had to reset my router and voila. Thanks for suggestions :victory:
[Android General] danijaan:
I've N5 5.1 rooted with custome recovery (rooted 2 days before). I'm having same issue but only when I'm connected to 3G. On wifi it works fine. Any idea what may be causing this or any solution? Because I am able to browse and use internet on 3G but not able to open Play Store or other Google services.
[Android General] engr.rao:
thanks dear, you solved my big problem

thanks dear
[Android General] dubwise79:
the problem for me was ad-away ..solved only updating
[Android General] bmx26:
In my virgin mobile galaxy s3 I wasn't able to edit the host file so what I did was grabbed a flashable zip of the stock rom and extracted the host file and copied it over to the system and it solved my problem and fixed my google services
[Android General] amirhh:
Hi guys. Im facing this problem.

I had rooted and unrooted my device after that i cant sign in into my google account. Please help me
[Android General] The Analog Kid:
Have you tried something to solve?
[Android General] hinnn:
Many thanks, it's worked for me,
[Android General] rifkyapriyandi:
Hi Bro , many thanks ....... its work , just change the permission and insert (#) on host after that reboot your mobile and re login :good:
[Android General] DexterDrone:
Thanks a ton mate

Hats off to you Developers working so hard and giving us cool updates and essential problem fixes!

Thanks you guys thanks thanks thanks that 'Can't Establish a reliable connection to the server' problem had irritated me for so long and I literally tried everything on the net but finally came across the 'ROOT' option putting '#' and it really worked and I was so damn happy. Thanks a ton again. All the best to all. Way to go Developers {^_^}
[Android General] ManDroidd:
My fix

!!!ROOT ONLY!!!

Google play store and overall google services function stopped working for me. I tried everything, I even called google tech.

Playstore can not establish a reliable connection became my nightmare.

Attempted fixes I tried

Date and time modification

Clearing cash and data for the play store and google services

Factory rest

Google tech(clueless)

I found a fix, that stated I should modify my host file. I downloaded a file explorer that could also edit. Attempted to edit the file but received and error and was unable to save the edit.

The edit required was just adding an # to the second line in the host file.

"Add a hashtag (#) to the front of the second set of numbers and save your changes (i.e. change from 127.0.0.1 to #127.0.0.1). Reboot and re-add your Google account and your Google Play Store problems should be fixed."

I found an app that is designed to edit that exact file on the 3rd party site

(You need a free app to grant admin rights called superSU to give host editor root access before it will work.)

It is also on the playstore for free but it was not an option lol

Just open the app and check the box beside the second second and longest host string and then tap the (#) button above and to the right and your done.

Go sign in to your now working play store!
[Android General] evemas:
I have a rooted LG E988. I followed the instructions and finally managed to sync my google account again. However, my Google Play Store (modded by Chelpus: latest version) stops working each time I try to open it. I have also tried it with an original version of Google Play Store, but no luck. When I recovered the original "hosts" file, everything went back to the way it was ( Google play working fine but not signing in and not being able to sync my google acount) Can anyone help?
[Android General] Mohsin_moz:
Facing same problem

Hi Guys,

I'm new here and i'm facing same issue. I tried to add "#" but after a while when i open host file. I see above line again without "#" and it's keep adding new line without "#"

HELP ME PLEASE!

Thanks.
[Android General] Matei004:
You need only go to etc/hosts and delete second line.You don't need reboot or factory reset.

Sorry for my bad English.
[Android General] jassi786:
Firstly thanx the forum and crazzy /my phobe was litlle bit crazzy by stop services

Then i try all but no solved..but in last i instal g.services framwork and also edit host file which recomended us by you..now login succcess in playstore.after reboot.and no massage again appear like stop sevicea...

I think it helpfull with same issu like me..!!!!
[Android General] urstrulydev:
thanks for the post buddyyy

I thought i have lost my playstore and started to look for 3rd party apps like amazon,mobogenie, etc..

I came uup to this post and found some awesum info..

This process worked for me..

I downloaded the root explorer, went to edit the hosts file (in etc) but its not happening saying that it is too long to display..

then i deleted the hosts file and went to recovery mode..

I tried to do wipe cache but it took too long.. so i removed my battery and restarted my phone and everythin back to normal....

According to me deleting the hosts file will do it..

Thanks a ton..
[Android General] khanawaseem786:
worked

first method worked for me { samsung galaxy note gt-n8000 10.1inch kitkat 4.4 }

but after complete reseting

thank u team:good::good::good::good::D:):o
[Android General] akarsh mittal:
Hey thanks very much

My IP address was different than yours but I took a bold step and copied all of the hosts file you recommended .

But still I am confused that how it happened is it because of freedom app

I used freedom app last night please please tell me the reason .
[Android General] tyresekingpin:
It doesn't work for me

It doesn't work for me and I'm rooted. Isn't there a way to fix the problem without interfering with host files ffs.
[Android General] saqawat:
good work!

thanks man! i truly appreciate for the great solution :good:

---------- Post added at 09:20 PM ---------- Previous post was at 09:16 PM ----------

OFFCOURSE! it happened because of freedom app. its because it changed the path of in app purchases away from google servers thats d reason it wasn't able to connect to its servers.
[Android General] aly19:
Here's my situation:

Just got a brand new Rogers HTC One M9. Out the box I am having these issues, I have tried flashing different ROMS and even trying all these solutions including changing hosts file. Could it be a hardware issue with my phone?
[Android General] Retr0Capez:
YES! Thank you so much for the method after uninstalling freedom! It worked! :D
[Android General] kapilraut:
Thanks

Thank you so much..it's worked
[Android General] @GrayFox2154:
Please someone Help me here!!!

Hello everyone, first of all i would like to thank the author who made this thread, it is indeed very good :)

So, today i started to get this conectivty to the google server problem on my moto g 2013 running cm12.1,and i got a bit frustaed and ended up formatting data on my device to see if could solve the problem...

Since i never heard of this problem before, i didn't know that formatting data in this case could screw everything up. Now i get this same error but on the boot up,and because of it my phone doesn't boot up to the home screen, it gets stuck in the first-time google login problem..

My question is that if i can edit this "hosts" file through an adb shell via recovery, if yes, does anyone knows ho to do it???

Appreciate any help, thanks in advance!
[Android General] NielsDeReus:
Hi,

What worked for me (with an out of the box new phone) was turning off wifi connection and then over 4g/LTE go to the Playstore.

That would let me in. Then update all google applications.

After that I could access the Playstore without issues via wifi as well.

Niels
[Android General] guinzo:
6. just Add # (pound sign) on the first number.

it's work on my Asus padfone S

previously yes i instal freedom, but im sure already disable/clear cache upon uninstal.

this way save my day.

Thanks you :D
[Android General] Callmebaus:
is there a way to fix it WITHOUT rooting it?

can't root mine currently...
[Android General] lyubobo:
Thank you

Many thanks for the provided solution! It worked perfectly on my HTC One X. Actually my IPs are more and different than the ones in the original post but the "#" sign in front the "...clients.google.com" row fixed the problem at all :):):)
[Android General] general bull:
Solution to connecting to google services on android

[/B]

Hey guys, for those having issues connecting to google services on your various phones, here is one way that worked for me with ease

Whether you are rooted or not before you start making modifications on your hosts' file and other suggestions you must have seen on XDA, its best to try out this easy step before make adjustments that can brick your phone or irreversible damage to your device.

Most times custom roms connects thru proxy and even your stock rom might have an app that requires connecting thru proxy, in this case the third party app modifies your APN settings without your knowing, in this case you can use some apps on your phone but will not be able to connect your google play store yet when connected to wifi everything works perfectly. If you have the same problem, Simply go to your mobile data settings, then >>>> Access Point Names, then click on the access point in use an click on proxy and delete the proxy address there and be sure that it is set to : Proxy - Not Set.

when you have done this exit the settings and switch on your data services and connect your google playstore , it most definitely will work.

Dont forget to comment if it works for you......:):):):):):):):good::good::good::good:
[Android General] midhundmobz:
Simple Solution Found

Just install Freedom app, Open it, Uninstall it. That's it!!!!This worked for me, hope its fine with you :cool::cool:
[Android General] morley7:
hello,

i have rooted moto e device. My all google sign in apps are not running now. I tried the following steps:

1- i uninstalled play store totally from device.

2- re-installed it.

3- deleted google account.

4- after seeing message "can't establish a reliable connection", i edited the hosts file by putting # as said above.

5- it worked, i signed in to my google account.

6- but after some time google account remained as it is, but syncronisation stopped. Now my play store is not running.It gives message like "unfortunetly google play store has stopped"(the app doesn't even open)

Note: i first deleted play store and reinstalled it.

please help me out as early as possible. I am in great trouble.
[Android General] fwbfwb:
NOTHING here worked, but I fixed it doing something else.

My phone was wifi only, I had mobile data OFF and airplane mode ON.

I turned mobile data ON and airplane mode OFF and it worked fine.
[Android General] khajak80:
Can't say how happy i am....

I was having a lot of trouble by this since last night.

I should have come here early.Late is latest.

THANK U SOOOOOO MUCH man. I have registered immediately to thank you.

Once again THANKS!!!!

:laugh::laugh::laugh::svetius::svetius:
[Android General] iforrrr:
Help ASAP

When this problem happened, I was panicked.. so then I factory reset my device and I thought it'll fix it by then. but since after you reset it you have to login to your gmail, it won't login. and I can't goto setting. please help thanks
[Android General] TylerMods:
i dont know why no one has posted solution to where.. the problem is when i factory reset my rooted tablet it is making me go through the setup process like usual but when it ask for a google account i get that error.. so i CANNOT access files (hosts file) to edit.
[Android General] solitudes:
Thanks for this post. It helped alot. Pls let me know if I keep this root browser or in uninstall it.
[Android General] Pranis:
Step 1st???

m nt able to root my device (Samsung sgh-i467)

plz help!!!!!!!!
[Android General] shawnster480:
OMG THANK YOU SOO MUCH< Saved my dman life! lol

OMG, your response, saved my ****ing life! Thank you so much! It even fixed my Google play network error, it was so dreaded, but now my phone is working perfect again :D :D Thank you :)
[Android General] HorusEyE:
In my case it's not still completelly solved!

I have used Root Explorer option, edited the hosts file which was like:

127.0.0.1<several spaces>localhost

127.125.157.222<single space>android.clients.google.com

mtalk.google.com

and changed it to:

127.0.0.1<several spaces>localhost

#127.125.157.222<single space>android.clients.google.com

mtalk.google.com

Now I can add my Google Accounts, check my emails, check Google +, but the Play Store and Hangouts are still unreacheable.

And I also noticed something that I'm not sure if it's normal...

I have 2 instances of Google Play Services running.

One has only one sub-process running and the other instance has 4 subprocesses running

Instance 1 has the following sub-processe running:

GcmService

Instance 2 has:

GoogleLocationManagerService

GoogleLocationService

NlLocationReceiverService

DispatchingService

Is this normal?

Edited;

Ok, I got it!!!
[Android General] willngg:
man i love you you saved me lol
[Android General] danielxg:
thx
[Android General] Moura_Gebra:
thanks man
[Android General] anindya4789:
Step 6

stuck at step 6..error still persists...i have moto g 2nd gen rooted PA 5.1.1
[Android General] Johnny Matt:
When I unrooted my phone and performed a factory data reset. I can't sign-up in my Google account, also I can connect in my home WiFi as usual but it can't load webpages (net::ERR_NAME_NOT_RESOLVE). Since I can't download third-party applications, I can't download Root Browser. :crying: :crying: :crying: :crying:
[Android General] e.pro:
I did every thing but it keeps changing to the one without hashtag
[Android General] RR EDITZ:
Tq bro
[Android General] pra_ranz:
Thank you so much it works perfectly

This issue headache me from past 10 days can't found a proper solution but this solution makes my day it works perfectly. Happy Happy Happy

One thing I want to say for new bie it won't works for me first time but second time I commented on both ip then it works fine.

Thank you so much :)
[Android General] XxCHAOSxX725:
Dammnnnnn

Dude ur awsomeeee
[Android General] amjadkhan:
i have try each every option but i facing a a different problem i am not able to connect mobile data and wifi only, one of my friends wifi detects and work on my device i have done factory reset. host edit, put #, every possible option tried but nothing happen . any one wil help me out
[Android General] ahemersquad:
cannot edit the file "hosts". it says "NOT ENOUGH MEMORY". Size of the file is 2.1mb. Any suggestions?
[Android General] smuppy:
OP, you saved me quite a lot of hairpulling and general badmouthing over my HTC Flyer. Worked like a charm :D

Why the h**l did HTC or Google ever put hardcoded IP addresses there in the first place... It's like asking for a disaster to happen, eh?
[Android General] PRMUnixOs:
First of all Thanx for the solution it works but after other hard reset its changed any other solution??

Im on HTC M7