My IP

2020年6月4日 0 条评论 227 次阅读 4 人点赞

JSON IP

Example (JSON) : https://myipip.net/ (IPv4 & IPv6) or curl myipip.net

Example (JSON) : https://myipip.cn/ (IPv4 & IPv6) or curl myipip.cn

Example (JSON) : https://myipv4.cn/ (Only IPv4) or curl myipv4.cn

Example (JSON) : https://myipv6.cn/ (Only IPv6) or curl myipv6.cn

JSON Output Schema

  • ip (Visitor IP address)
  • country (Two-letter ISO 3166-1 alpha-2 country code)

Output example

The following example use LSHIY server

{"ip":"2404:f4c0:300::1","country":"US"}

Curl example

The following example use LSHIY server

[[email protected] ~]# curl myipv4.cn
{"ip":"103.149.144.1","country":"US"}
[[email protected] ~]# curl myipv6.cn
{"ip":"2404:f4c0::1","country":"US"}

Acknowledgment

Hosted on Cloudflare.

LSC_MOE

这个人太懒什么东西都没留下

文章评论(0)