How to Connect Android Emulator to Local Network

Posted on

When you’re going to develop an android app, we can use the Android emulator to run the app for testing. The Android emulator integrates with the Android SDK and AVD manager in the IDE.

How to Connect Android Emulator to Local Network

The question that novice developers often ask is how do I access the internet from an emulator? Especially when internet access is limited by proxies that are usually applied on corporate or campus networks.

Turns out it’s pretty easy. The steps are as follows:

  • Run the android emulator from the SDK and AVD manager. Select the Android platform according to the segment of the app to be created.
  • On the emulator, click the menu button. After that will be faced with the initial menu of android.
  • Select Settings menu – Wireless & Networks – Mobile Networks – Access Point Names
  • Create APN. APN provides proxy configuration on the android operating system.
  • Fill in proxy data, such as Proxy Name, Proxy Port, Username, Password, and Authentication model.
  • In the example, I filled in my campus proxy data ITS.
    Proxy Name : proxy.its.ac.id
    Proxy Port : 8080
    Username : confidential
    Password : secret
    Authentication type: PAP or CHAP

Configuration completed

Click to rate this post!
[Total: 0 Average: 0]
Content Protection by DMCA.com

Leave a Reply

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