How the Android simulator configures network connectivity

Source: Internet
Author: User

The PC can surf the internet, and the Android emulator on the PC cannot surf the internet. In fact, as long as the simulator with their own PC in the same network segment on the line:

First, if you do not configure an environment variable for the SDK, enter the Platform-tools directory under the SDK installation path under the cmd command (D:\Program files\android\android-sdk-windows\ Platform-tools), and then use the ADB Shell command If the SDK environment variables are configured

, enter the ADB shell directly in the cmd window, such as: C:\Documents and settings\administrator>adb Shell

Then enter: Getprop View the current properties of the system, get the DNS address of the emulator, as follows:

[NET.DNS1]: [10.0.2.3]

The following is the use of the SetProp command to change the emulator's DNS to their own PC DNS, for example: 192.168.0.185

SetProp net.dns1 192.168.0.185

then enter, OK.

How the Android simulator configures network connectivity

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.