获取公网IP
您的IP:

示例1

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

示例2

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

示例3

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

示例4

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