合 几种查询外网IP的办法
Tags: LinuxOSWindows上网IP公网IP查询外网IP
在Windows下查询外网IP的办法
可以通过curl或wget命令(Windows环境需要单独下载,wget下载:http://www.interlog.com/~tcharron/wgetwin.html):
1 2 3 4 | curl ifconfig.me curl cip.cc curl ipinfo.io/ip wget -qO - ifconfig.co |
1 2 3 4 5 6 7 8 9 10 | root@lhrxxt:~# curl cip.cc IP : 124.89.2.126 地址 : 中国 陕西 西安 运营商 : 联通 数据二 : 陕西省西安市 | 电信 数据三 : 中国陕西省西安市 | 联通 URL : http://www.cip.cc/124.89.2.126 |
若是乱码,则需要修改代码页: