首页 > 系统 > Android > 正文

Android之通过adb shell getprope、netstat命令看dns、ip

2019-11-08 00:22:11
字体:
来源:转载
供稿:网友

1、查看dns

        1)、输入adb shell 

        2 )、输入getPRop ,查看配置

                     

        3)、getprop | grep dns 过滤dns

                  

           4) 、getprop | grep dns 输出dns

                

             5) 、修改dns  需要root ,然后输入 adb shell 然后输入su命令 然后set dhcp.wlan0.dns1 8.8.8.8

2、查看手机ip

             输入netstat

           

            手机ip是10.30.201.46


发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表