首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >Linux系统获取公网IP地址

Linux系统获取公网IP地址

原创
作者头像
子润先生
修改2021-06-29 10:19:27
修改2021-06-29 10:19:27
18.6K0
举报

收集了几个查询公网IP的网址,可以通过curl命令方便的查看。

方法一:

代码语言:javascript
复制
[root@localhost ~]# curl ifconfig.cc

方法二:

代码语言:javascript
复制
[root@localhost ~]# curl ifconfig.me
方法三:
[root@localhost ~]# curl icanhazip.com
方法四:
[root@localhost ~]# curl cip.cc
方法五:
[root@localhost ~]# curl members.3322.org/dyndns/getip
方法六:
[root@localhost ~]# curl ipinfo.io
方法七:
[root@localhost ~]# curl myip.ipip.net
方法八:
[root@localhost ~]# curl httpbin.org/ip
方法九:
[root@localhost ~]# curl ip.sb
方法十:
[root@localhost ~]# curl whatismyip.akamai.com
方法十一:
[root@localhost ~]# curl -s ifcfg.cn/echo | python -m json.tool

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档