moooofly / MarkSomethingDownLLS

本仓库用于记录自 2017年10月16日起,在英语流利说任职期间的各方面知识汇总(以下内容不足以体现全部,一些敏感内容已移除)~
MIT License
79 stars 42 forks source link

如何确定自己的 IP 地址 #4

Open moooofly opened 5 years ago

moooofly commented 5 years ago

基于命令行

参考:在命令行内获取公网 IP 的几种简单方法

dig

目前广受中外网友好评简单快速的查询公网 IP 方案,OpenDNS 支持 IPv4 和 IPv6

# IPv4
dig -4 +short myip.opendns.com. @resolver1.opendns.com

# IPv6
dig -6 +short myip.opendns.com. @resolver1.opendns.com

curl

curl whatismyip.akamai.com
curl ifconfig.me
curl ipecho.net/plain
curl icanhazip.com

JSON

curl ipinfo.io
curl https://api.myip.com

My IP

https://gsuite.tools/my-ip

效果图

image

WhatIsMyIP

网址:https://www.whatismyip.com/

效果图

image

ipify

网址:https://api.ipify.org/ 相关:https://www.ipify.org/

效果图

image

IP Address Lookup Tool

网址:https://www.ultratools.com/tools/yourIPResult

效果图

image

ip.cn

网址:https://ip.cn/

效果图

image

IPIP

网址:https://www.ipip.net/ip.html

效果图

image

可以看出,从这个网站上直接看到的是“访问国内网站”时使用的 IP 地址(对比下面的);

ip111.cn

网址:http://www.ip111.cn/

效果图

image

原理

image

image

image

问题

moooofly commented 5 years ago

What can we know about you?

Did you know that anyone can locate your ISP-assigned public IP address with a 5km-radius accuracy? We can also discover much more about your Internet connection. By the moment you browse this page, we determined your device's public IP address and performed a geolocation lookup over your connection. You can compare this data to what you expect from your connection, especially if you're using any Proxy or VPN solution.

Results

image

In addition to the precise Google Maps geo positioning powered by MaxMind technology, a table synthesises the geo-data gathered for your IP address.

This tool provides you a precision down to 5km on the GPS coordinates (latitude, longitude) and administrative location (continent, country, region, postal code, city) of that IP.

We complete this report with other useful data about your hostname and timezone (date and time).

This IP Locator gives you the advantage of knowing much more about other party can find about you on the Web.