echoipIP 地址查詢服務(wù)
echoip 是一個(gè)查詢 IP 地址及其相關(guān)信息的工具。
用法
Just the business, please:
$ curl ifconfig.co
127.0.0.1
$ http ifconfig.co
127.0.0.1
$ wget -qO- ifconfig.co
127.0.0.1
$ fetch -qo- https://ifconfig.co
127.0.0.1
$ bat -print=b ifconfig.co/ip
127.0.0.1
Country and city lookup:
$ curl ifconfig.co/country
Elbonia
$ curl ifconfig.co/country-iso
EB
$ curl ifconfig.co/city
Bornyasherk
$ curl ifconfig.co/asn
AS59795
As JSON:
$ curl -H 'Accept: application/json' ifconfig.co # or curl ifconfig.co/json
{
"city": "Bornyasherk",
"country": "Elbonia",
"country_iso": "EB",
"ip": "127.0.0.1",
"ip_decimal": 2130706433,
"asn": "AS59795",
"asn_org": "Hosting4Real"
}
Port testing:
$ curl ifconfig.co/port/80
{
"ip": "127.0.0.1",
"port": 80,
"reachable": false
}
將適當(dāng)?shù)?flag(通常是-4和-6)傳遞給你的客戶,在IPv4和IPv6查詢之間進(jìn)行切換。
特性:
- 好記的域名
- 快速地
- 支持 IPv6
- 支持HTTPS
- 支持常見的命令行客戶端(例如
curl、httpie、ht和)wgetfetch - JSON 輸出
- 使用 MaxMind GeoIP 數(shù)據(jù)庫(kù)進(jìn)行 ASN、國(guó)家和城市查找
- 端口測(cè)試
- 所有端點(diǎn)(除了
/port)都可以返回有關(guān)通過(guò)?ip=查詢參數(shù)指定的自定義 IP 地址的信息 - 在BSD 3-Clause 許可下開源
評(píng)論
圖片
表情
