获取外网ip/公网ip方法

.

0

linux命令:curl -s ifcfg.cn/echo |python -m json.tool json.tool -m |python ifcfg.cn/echo -s curl curl -s ifcfg.cn/echo |python -m json.toolrootopen.com
linux命令:curl -s ifcfg.cn/echo |python -m json.tool json.tool -m |python ifcfg.cn/echo -s curl curl -s ifcfg.cn/echo |python -m json.toolrootopen.com
nmcp 2018-07-15 16:01:00
输出
{
    "headers": {
        "ACCEPT": "*/*",
        "CONNECTION": "close",
        "HOST": "ifcfg.cn",
        "USER-AGENT": "curl/7.29.0",
        "X-FORWARDED-FOR": "172.93.47.106",
        "X-FORWARDED-PROTO": "http"
    },
    "host": "ifcfg.cn",
    "ip": "172.93.47.106",
    "location": "\u7f8e\u56fd",
    "method": "GET",
    "path": "/echo",
    "protocol": "http",
    "query_string": "",
    "url": "http://ifcfg.cn/echo",
    "user_agent": "curl/7.29.0"
}

评论

相关推荐
共收录0条命令行
这里是记录和分享命令行的地方, 所有命令行都可以进行评论、提交替代方案.

热门文章