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