/中文/
/中文/
/中文/
/中文/
/英文/
/中文/
/英文/
/中文/
/中文/
/中文/
软件Tags: ip地址
IP地址查看器是一款查看ip地址的辅助工具,帮助小白轻轻松松获得公共网络以及个人网络的ip地址,十分好用,非常简单,还有更多好用的ip工具欢迎到绿色资源网下载体验!
1、本机公网ip地址获取查看,很简单的代码:
@echo off
echo On Error Resume next >checkip.vbs
echo Set oDOM=WScript.GetObject("http://www.ip138.com/ip2city.asp") >>checkip.vbs
echo WScript.sleep 2000 >>checkip.vbs
echo ip = Split(oDOM.documentElement.outerText) >>checkip.vbs
echo Set FSO = CreateObject("Scripting.FileSystemObject") >>checkip.vbs
echo Set SCF = FSO.OpenTextFile(FSO.BuildPath(FSO.GetSpecialFolder(0),"ip.txt"),2,True) >>checkip.vbs
echo SCF.Write(ip(0)) >>checkip.vbs
echo SCF.Write(ip(1)) >>checkip.vbs
echo SCF.Close >>checkip.vbs
checkip.vbs
type %windir%\ip.txt
del checkip.vbs; %windir%\ip.txt
pause>nul
2、获取你本机的ip地址:具体操作方法:
点击开始――运行――输入cmd,然后在提示符下输入:ipconfig/all,输入后即可