获取公网IP
您的IP:

示例1

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

示例2

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

示例3

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

示例4

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