Android Emulator Proxy Settings

 

Internet browsing in android emulator required no configuration if your host operating system is out of proxy. But if you are behind the proxy you must set android emulator proxy settings properly. An incorrect configuration hampers your internet browsing.

There are many ways to setup android emulator proxy settings. Here I am going to mention some of the easiest ways:

Android Emulator Proxy Settings - Edit Access Point

Android Emulator Proxy Settings – Edit Access Point

Manual Configuration:

01. Go to Home Screen

02. Click on Menu

03. Click on Settings

04. In Wireless & Networks category, click More…

05. Click Mobile Networks

06. Click Access Point Names

07. Click TelKila

08. Enter Proxy and Port

09. Enter Username and Password if required

 

From Command Line:

01. Run the command console by Start >> Run >>Type cmd>> Press Enter

02. Navigate to tools folder of android SDK installation. In my case it is D:android-developmentandroid-sdk-windowstools

03. Run the command after customize for yourself. “emulator -avd {avd-name| in my case DroidX} -http-proxy {http-proxy address:port|in my case 172.168.250.7:8080}”

04. In my case the full command was: “emulator -avd DroidX -http-proxy 172.168.250.7:8080”

 

Your proxy was set successfully. Just open browser, pour an URL to it and continue browsing.

 

Please Note: I have used Android Emulator 4.0.3 to test this android emulator proxy settings process.

Expert in Oracle Database 10g and 11g. Deep knowledge on SQL, PL/SQL and Java programming. Working at Square InformatiX Limited as Oracle Database Administrator.

Posted in Android Tagged with: ,
9 comments on “Android Emulator Proxy Settings
  1. Andrew A. Wilson says:

    Hi Mr. Rahaman,

    I have a great trouble with this proxy when developing android app. I can’t anyway connect to internet with my emulator. Your great article help me to solve the problem. I like this. Thanks.

    — Andrew

  2. vishal upadhyay says:

    Hi Mr. Rahaman,
    I am new in this android env. and not aware how to find proxy and port number for the same.
    kindly help me to find out to internet working on android Emulator.

    BRs
    Vishal

  3. Rahinur Rahaman says:

    Dear @vishal upadhyay

    Not all network use proxy. If your network use proxy, you will find them on Internet Explorer.

    Go to Tools >> Internet Options >> Connections >> Lan Settings

    Here you will find Proxy Server & Port Information

  4. chaitanya says:

    We have .pac file in LAN settings. It has automatic configuration ON. I want to run this on Android emulator.
    Could let me know where & how I need to add path in Emulator settings.

  5. krupa says:

    Hi, I am trying to set the proxy to localhost:8080 using the command prompt method. But it says unable to authenticate using the given proxy. There is a proxy running on my localhost and it is working fine when I use a browser like IE. There is no username and password for the proxy running on my system. Please help…

  6. Rahinur Rahaman says:

    @krupa

    You will find your proxy setting on Internet Explorer. Just go to Tools >> Internet Options >> Connections >> LAN Settings. You will find “Local Area Network (LAN) Settings” dialog box. Proxy Server region of this dialog box, you will find your working proxy server address and port.

  7. Ravi Shah says:

    Hi Rahinur,

    I am pretty much new to Android Development and have got first task to make a client over .NET WCF. I am working on ADT (Build: v21.0.0-531062). I understand from so many blogs that localhost has to be replaced with 10.0.2.2. So my http://localhost:8081/Service1.svc url looks like http://10.0.2.2:8081/Service1.svc now. But still I am facing following exception:

    01-01 15:21:11.374: W/System.err(2633): org.apache.http.conn.HttpHostConnectException: Connection to http://10.0.2.2:8081 refused

    I even tried with the router ip 192.168.1.25, still facing the same exception. Any solution to this will be great helpful and highly appriciated.

    Regards,
    Ravi Shah

  8. New says:

    Hi! Can you help me, please? I tried to do this but in Access Point Names a have nothing. This is empty.

  9. Mohamed Hussain says:

    Hi,

    Thanks for you post. Now i am able to connect to internet using my proxy in android emulator 4.1 and but i am not able to connect to internet when i use android tablet emulator 3.2. please help me in this.Thanks for any help.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>