4

I am currently using volley to access my web server database. But i was getting this error:

Unable to resolve host “<url here>”; No address associated with hostname

My friends can access them when they install the APK I gave them and I can access it with my own phone using office's internet. But when I'm home I can't access it with my phone using my home wifi but I can access is by writing the URL in my PC browser, I can access it with my AVD.

I have looked at the answers here: Unable to resolve host "<url here>"; No address associated with hostname

Actually I dont know if I should comment there or create a new question

I have give internet permission and restarted my phone's wifi, my wifi router, and even restarted my phone but still the same result. Any other solutions? thank you

Community
  • 1
  • 1
user3576118
  • 375
  • 1
  • 5
  • 24
  • I have wrote the exact URL in my browser and it can access it, basically I can access it anywhere else except with my phone using my home wifi – user3576118 Jun 29 '16 at 17:44
  • 1
    Have you tried the URL in a browser on the device? Your question says that you tried from a PC. – CommonsWare Jun 29 '16 at 17:45
  • can you access the url from your browser from your home wifi?? – SripadRaj Jun 29 '16 at 17:46
  • I found out that i can't access it using my phone's broswer too by writing the url there but using my PC's browser with my home wifi i can access it – user3576118 Jun 29 '16 at 17:48
  • Interesting problem. Could be it related with dhcp bugs, https://rudd-o.com/archives/wifi-dhcp-network-not-working-with-your-android-phone ?. Waiting for other comments. – ישו אוהב אותך Jun 29 '16 at 17:52
  • you need to use an IP address and your server should accept connections from all hosts. – muratgu Jun 29 '16 at 17:53
  • @user3576118 can you specify, how you called the url ? and post some code that you have tried that will be helpful to solve – Swaminathan V Jun 30 '16 at 10:31
  • i can access it perfectly fine now, without any code changes and without doing any settings – user3576118 Jul 01 '16 at 11:55
  • saw a lot reported from the installs in the field. same device same wifi sometime works sometime not. Waiting if someone knows better. – lannyf Apr 18 '17 at 20:58

0 Answers0