命令列檢視公網IP地理位置 使用curl

2021-08-27 09:05:42 字數 1428 閱讀 6009

curl cip.cc
$ curl ipinfo.io

{ "ip": "34.80.248.126",

"hostname": "126.248.80.34.bc.googleusercontent.com",

"city": "new york city",

"region": "new york",

"country": "us",

"loc": "40.7143,-74.0060",

"org": "as15169 google llc",

"postal": "10004",

"timezone": "america/new_york",

"readme": ""

$ curl cip.cc

ip : 34.80.248.126

位址 : 美國 美國

資料二 : 台灣省 | 彰化縣google雲計算資料中心

資料三 : 美國德克薩斯休斯頓

url :

$ curl ip.gs

current ip / 當前 ip: 34.80.248.126

isp / 運營商: cloud.google.com

city / 城市: changhua county taiwan

country / 國家: china

curl cip.cc/ip

─➤  curl cip.cc/8.8.8.8

ip :

8.8.8.8

位址 : google.com google.com

運營商 : level3.com

資料二 : 美國 | 加利福尼亞州聖克拉拉縣山景市谷歌公司dns伺服器

資料三 : 美國 | level3

url :

curl freeapi.ipip.net/ip

╰─➤  curl freeapi.ipip.net/35.194.24.24

["美國","愛荷華州","康瑟爾布拉夫斯","","cloud.google.com"

]

curl ip.gs
curl ip.sb
curl whatismyip.akamai.com
curl icanhazip.com
curl ifconfig.cat
參考:

[命令列] curl查詢公網出口ip

本地公網ip

命令列 curl查詢公網出口IP

不管是在家裡還是辦公室,或者是公司的主機,很多時候都是在內網中,也就是說很多都是通過 nat上網的,liuzhizhi lzz rmbp logs curl ipinfo.io liuzhizhi lzz rmbp logs curl ip.cn 當前 ip 114.110.1.38 來自 北京市 ...

windows命令列下測試網速和檢視公網IP的方法

pip install speedtest cli測速,其實在這裡也可以看到自己的公網ip speedtest cli no download 只顯示上傳速度 speedtest cli help 檢視所有命令 1 檢視公網ip 方法一 curl cip.cc 可能會出現亂碼,但是還可以清楚的看到i...

使用命令列檢視SQLite資料庫

android device monitor失效不能使用file explore檢視資料庫檔案,故嘗試使用命令列 測試環境 linux fedora 25 andorid虛擬機器 adb shell 檢視shell提示符是否是 是則跳過此步驟。如果如下 generic x86 64 則使用su命令切...