I am trying to use internet with the Android emulator, but with no success. Any ideas?
- 4What exactly are you trying to do? Use the browser or other applications on the emulator, or use internet connections in your own application?r1k0– r1k02010-02-05 14:12:33 +00:00Commented Feb 5, 2010 at 14:12
- Try to accept some answers, you and they will get reputationJanusz– Janusz2010-03-04 10:47:47 +00:00Commented Mar 4, 2010 at 10:47
- 1This question has an answer that worked for a lot of folks: stackoverflow.com/questions/2039964/…harpo– harpo2011-02-15 22:15:58 +00:00Commented Feb 15, 2011 at 22:15
- I have answered below with URL which has more details!MduSenthil– MduSenthil2011-08-31 23:44:56 +00:00Commented Aug 31, 2011 at 23:44
9 Answers
In order to use internet on emulator if you are setting behind a proxy server perform the following steps:
Go to settings->Wireless & networks->mobile networks->Access Point Names.
Press menu button. an option menu will appear.
from the option menu select New APN.
Click on Name. provide name to apn say My APN.
Click on APN. Enter www.
Click on Proxy. enter your proxy server IP. you can get it from internet explorers internet options menu.
click on Port. enter port number in my case it was 8080. you can get it from internet explorers internet options menu.
Click on User-name. provide user-name in format domain\user-name. generally it is your systems login.
Click on password. provide your systems password.
press menu button again. an option menu will appear.
press save. try n run your browser.
12 Comments
If by "use internet", you mean you can not access the internet from an activity while testing on the emulator, make sure you have set the internet permission in your AndroidManifest.xml
<uses-permission android:name="android.permission.INTERNET" /> If you are using the web browser, refer to Donal's post
Comments
If you are using eclipse try:
Window > Preferences > Android > Launch
Default emulator options: -dns-server 8.8.8.8,8.8.4.4
3 Comments
emulator -avd Pixel_C_API_26 -dns-server 8.8.8.8,8.8.4.4Check your internet settings, firewalls and such may be blocking it, I know when I was working on it in college they were blocking the port number but I've never had any trouble on my home machines
1 Comment
Allow the ADB to access the network by opening it on the firewall
If you are using winvista and above, go to Windows Advance Firewall under Administrative tool in Control Panel and enable it from there