Linux Quick View public network ip,linux View public IP There are many kinds, the following main introduction three kinds: the principle is to send a URL request via the Curl command, return the corresponding IP. or send an IP request to return the corresponding address, as follows:
-
Curl icanhazip.com
[[ Email protected] ~]# Curl icanhazip.com
125.17.201.250
[[email protected] ~]#
-
Curl cip.cc
[email protected] ~]# Curl cip.cc
Ip : 124.87.222.250
Or if you want to find out where an IP address is, do the following:
[[email protected] ~]# Curl cip.cc/27.154.232.5
Ip : 27.154.232.5
Address : China Fujian province Xiamen
Operator : Telecom
Data two : Xiamen, Fujian | Telecom
Url : http://www.cip.cc/27.154.232.5
3.curl ip.cn
[Email protected] ~]# Curl ip.cn
Current ip:145.67.242.250 from: Fujian Province Xiamen Telecom
or check the location of an IP: Curl ip.cn/125.44.51.26
This article is from the "Jurchens" blog, make sure to keep this source http://6656395.blog.51cto.com/6646395/1773134
Linux View public network IP