2

I have been trying to run internet on the android emulator but with no success yet. I have tried most of the things i.e. trying to run with dns-server option argument, adding proxy configuration details in APN settings. It does make internet work on android emulator but only the browser is able to use it and not the applications. So have got the proxy removed but still am not able to use internet. In fact, after removing proxy even the browser is not able to connect to the internet.

Is having static IP associated with the system a necessity ? As, the system which I am using doesn't have a static IP?

Can anyone suggest what can be the issue?

thefrugaldev
  • 1,619
  • 4
  • 18
  • 36
  • if you have localhost in system Try typing 10.0.2.2 in emulator browser! – Arun C May 30 '13 at 12:24
  • In my experience if the android browser is able to connect to the internet but your application is not then there is something wrong in your application, not with the emulator. – Rarw May 30 '13 at 12:43
  • The browser only working with a proxy setting seems to suggest that your Internet service connection blocks direct connections and requires everyone to go through a proxy. This may be supportable, but it will be rather painful to configure. – Chris Stratton May 30 '13 at 15:17
  • @Rarw - There is an issue with Android since long time that it doesn't provide support for Proxy globally. The browser is able to use the internet only when I configure Proxy settings in it otherwise not. – thefrugaldev May 31 '13 at 11:37
  • 1
    @ArunCThomas - Trying typing 10.0.2.2 in emulator browser gives Connection to the server timed out error dialog. – thefrugaldev May 31 '13 at 11:52

3 Answers3

0

Forgive me if this is obvious but do you have the right permission set in your app?

<uses-permission android:name="android.permission.INTERNET" /> 

In your manifest.xml?

Static IPs shouldn't be a requirement at all.

Ken Wolf
  • 23,133
  • 6
  • 63
  • 84
0

I solved this by creating new APN in the emulator.

wordpressm
  • 3,189
  • 3
  • 20
  • 29
-1

The issue has been resolved. There were some issues with IT policy on the system which was blocking android emulator from using the internet. Now, this has been resolved.

thefrugaldev
  • 1,619
  • 4
  • 18
  • 36