[英]How to assign a static IP to Android Emulator
我需要为Android 2.2仿真器分配一个静态IP。 因此,我检查了Wi-Fi设置下的“使用静态IP”选项,并提供了IP和网关。 但是当我使用ifconfig eth0在adb shell中检查它时,它仍然显示默认IP。 看来我需要从命令行设置。 有什么帮助吗?
您可以在http://www.ehow.com/how_10006833_change-ip-android-emulator.html中查看此链接
剧情简介
使用说明
1
Boot the emulated Android device in the Android emulator.
2
Click the "Applications" icon.
3
Click "Settings."
4
Click "Wireless and Network."
5
Click "Wi-Fi Settings."
6
Click the "More" button.
7
Click "Advanced."
8
Click "Use Static IP."
9
Click "IP Address" and enter a new IP.
在Android Emulator中,如果执行ifconfig,则将网桥eth0和eth1视为网络设备。 其中网桥的IP为10.0.2.15,而eth0向上但没有IP,而eth1向下而没有任何IP。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.