我们需要用到android-sdk开发包中adb shell
进入Android SDK中的platform-tools目录,然后运行命令:adb shell
然后再输入:
setprop net.dns IP(输入你的局域网地址)
getprop
退出adb shell
exit