Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
3.4k views
in Technique[技术] by (71.8m points)

雷电模拟器怎么看局域网ip

雷电模拟器怎么看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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

用 adb

 adb shell netcfg
 
 # 或者
 adb shell ip addr

如果多设备:

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...