获取公网IP
您的IP:

示例1

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

示例2

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

示例3

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

示例4

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