0

I have one computer with test websites set up. I can access the test-sites from other computers.

Now I want to do some changes to make the sites mobile friendly.

I can not access the websites with my android mobile.

Problem 1: Can't edit /etc/hosts on my android

Problem 2: If I enter 192.168.2.77 in the URL Bar of a browser in any computer I get the master test site corrctly. Doing the same with the android device I just get a timed-out error.

any help apreciated

hy-soft
  • 163
  • 2
  • 12
  • Is your website running on a port? – GOSCHEN Aug 25 '15 at 13:58
  • No - well rather on port 80 as usual. If I enter 192.168.2.77:80 from the browser on the computer I get what I expect. – hy-soft Aug 25 '15 at 14:04
  • Did you set Internet permission for your phone yet? – BNK Aug 25 '15 at 14:07
  • Pardon, what do you mean with "internet pemission"? – hy-soft Aug 25 '15 at 14:17
  • If you go to Google chrome (from your device) and type `192.168.2.77` you can see your website in local LAN? – Skizo-ozᴉʞS ツ Aug 25 '15 at 14:24
  • Is your mobile connected to your LAN when you are trying to access the IP '192.168.2.77'? Also have you enabled incoming firewall rule "World Wide Web Services (HTTP Traffic-In)" if you have test websites set up on a Windows machine? – Daniel Netto Aug 25 '15 at 14:32
  • Funny, it works with chrome (never used it on the device - always using opera). Its an apache server on debian – hy-soft Aug 25 '15 at 14:37
  • Will this [link](http://stackoverflow.com/questions/7679100/how-to-access-local-server-on-a-pc-using-opera-mobile) help resolve your issue – Daniel Netto Aug 25 '15 at 15:11

1 Answers1

1

Make sure that you've INTERNET permission in your manifest.xml file

<manifest>
<uses-permission android:name="android.permission.INTERNET" /> //this line of code
<application>
....
</manifest>
Skizo-ozᴉʞS ツ
  • 19,464
  • 18
  • 81
  • 148