获取公网IP
您的IP:

示例1

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

示例2

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

示例3

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

示例4

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