linux 下查看外网ip

1. curl ipinfo.io

~/codes/qt_codes/qt-5.4.1-build$ curl ipinfo.io
{
  "ip": "114.241.210.22",
  "hostname": "No Hostname",
  "city": "Beijing",
  "region": "Beijing Shi",
  "country": "CN",
  "loc": "39.9289,116.3883",
  "org": "AS4808 CNCGROUP IP network China169 Beijing Province Network"
}

2. curl http://members.3322.org/dyndns/getip

~/codes/qt_codes/qt-5.4.1-build$ curl http://members.3322.org/dyndns/getip
114.241.210.22

时间: 2024-08-25 08:11:00

linux 下查看外网ip的相关文章

几种在Linux下查询外网IP的办法。

几种在Linux下查询外网IP的办法. Curl 纯文本格式输出: curl icanhazip.com curl ifconfig.me curl curlmyip.com curl ip.appspot.com curl ipinfo.io/ip curl ipecho.net/plain curl www.trackip.net/i curl JSON格式输出: curl ipinfo.io/json curl ifconfig.me/all.json curl www.trackip.n

linux下获取外网IP

使用阿里云或者有多个网卡IP的机器需要取外网IP时,可以用下面这种 wget -qO - ifconfig.co 更多方法参考:https://yq.aliyun.com/ziliao/105999

linux下查看外网出口IP

一. [[email protected] ~]# curl ifconfig.me124.193.193.25 [[email protected] ~]# curl ifconfig.me/allip_addr: 124.193.193.25remote_host: user_agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.16.1 Basic ECC zlib/1.2.3 libidn/1.18 libss

几种在Linux下查询外网IP的办法(转)

Curl 纯文本格式输出: curl icanhazip.com curl ifconfig.me curl curlmyip.com curl ip.appspot.com curl ipinfo.io/ip curl ipecho.net/plain curl www.trackip.net/i curl JSON格式输出: curl ipinfo.io/json curl ifconfig.me/all.json curl www.trackip.net/ip?json (有点丑陋) cu

几种在Linux下查询外网IP的办法

原文地址:http://my.oschina.net/epstar/blog/513186 Curl 纯文本格式输出: curl icanhazip.com curl ifconfig.me curl curlmyip.com curl ip.appspot.com curl ipinfo.io/ip curl ipecho.net/plain curl www.trackip.net/i curl JSON格式输出: curl ipinfo.io/json curl ifconfig.me/a

linux系统查看外网IP

很简单的一个命令: [[email protected] /]# curl ifconfig.me 120.132.xxx.xxx 就完成了,很方便.

云服务器查看外网ip

curl ip.6655.com/ip.aspx  curl whatismyip.akamai.com  wget -qO - ifconfig.co  curl icanhazip.com  dig +short myip.opendns.com @resolver1.opendns.com  curl ident.me  curl v4.ident.me  curl curlmyip.com  curl ifconfig.me  curl inet-ip.info #需要翻x墙,只返回IP

云服务器查看外网IP地址方法

#返回IP地址 curl ip.6655.com/ip.aspx curl whatismyip.akamai.com wget -qO - ifconfig.co curl icanhazip.com dig +short myip.opendns.com @resolver1.opendns.com curl ident.me curl v4.ident.me curl curlmyip.com curl ifconfig.me curl inet-ip.info #返回IP和地区 1.cu

网站维护:Linux服务器查看外网访问IP指令汇总

一.前言服务器有的时候会被人搞崩,cpu莫名飙升,为了查看哪些IP访问过于频繁,就可以使用netstat.awk等指令进行统计查看. 二.指令对一些常用的指令总结如下: 1.常用指令对连接的IP按连接数量进行排序: Shellnetstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n1netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c |