获取公网IP
您的IP:

示例1

外部请求:http://okjson.com/ip/?raw
       响应:
3.229.124.74

示例2

外部请求:http://okjson.com/ip/?json
       响应:
{"ip":"3.229.124.74"}

示例3

Linux命令行请求:curl http://okjson.com/ip/?raw
       响应:
3.229.124.74

示例4

Linux命令行请求:curl http://okjson.com/ip/?json
       响应:
{"ip":"3.229.124.74"}