方法

IPV4:

curl 'https://api4.ipify.org?format=json'

返回值:

{"ip":"123.172.54.45"}

IPV6:

curl 'https://api6.ipify.org?format=json'

返回值:

{"ip":"2001:bc8:1200:411:2328:a2ff:fefc:65a6"}

 

ipv4:

http://ip.42.pl/raw

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2022-01-21
  • 2021-06-20
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-21
  • 2021-12-29
  • 2021-09-03
  • 2021-09-21
  • 2021-11-18
相关资源
相似解决方案