0

我需要为我的 Android 2.2 模拟器分配一个静态 IP。因此,我检查了 Wi-Fi 设置下的使用静态 IP 选项并提供 Ip 和网关。但是当我使用 ifconfig eth0 在 adb shell 中检查时,它仍然显示默认 IP。看来我需要从命令行设置。有什么帮助吗?

4

2 回答 2

1

您可以查看此链接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.
于 2013-07-09T06:45:25.233 回答
0

在 Android Emulator 中,如果您执行 ifconfig,那么您将看到网桥、eth0 和 eth1 作为网络设备。桥将 10.0.2.15 作为 ip 并且 eth0 启动但没有任何 ip 并且 eth1 关闭而没有任何 ip。

参考这个

于 2013-07-09T06:37:05.607 回答