Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

雷电模拟器怎么看ip

C:Userssecoo>adb shell ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN
    link/sit 0.0.0.0 brd 0.0.0.0
3: ip6tnl0@NONE: <NOARP> mtu 1452 qdisc noop state DOWN
    link/tunnel6 :: brd ::
4: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1472 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:db:d2:03:84:2a brd ff:ff:ff:ff:ff:ff
    inet 172.16.2.8/24 brd 172.16.2.255 scope global eth0
       valid_lft forever preferred_lft forever
    inet 172.16.2.15/24 brd 172.16.2.255 scope global secondary eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::2db:d2ff:fe03:842a/64 scope link
       valid_lft forever preferred_lft forever

这里好像没找到那个是模拟器局域网ip


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
3.3k views
Welcome To Ask or Share your Answers For Others

1 Answer

用 adb

 adb shell netcfg
 
 # 或者
 adb shell ip addr

如果多设备:

 adb -s {id} shell netcfg
 adb -s {id} shell ip addr

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share

548k questions

547k answers

4 comments

86.3k users

...