🧐 “Where am I?” / “我在哪?”

When working with VPNs, Proxies, or moving between data centers, you often need to know: “What is my current public IP, and where does the world think I am?”
当使用 VPN、代理或在数据中心之间迁移时,你经常需要知道:“我当前的公网 IP 是什么?世界认为我在哪里?”

curl ifconfig.me is simple, but it lacks detail.
curl ifconfig.me 很简单,但缺乏细节。


🐍 checkIP.py

checkIP is a Python script that robustly checks your outbound IP against multiple providers to detect split-tunneling or DNS leaks.
checkIP 是一个 Python 脚本,它结合多个提供商来检测你的出站 IP,以发现分流异常或 DNS 泄露。

Features / 特性

  • Multi-Provider: Queries ipinfo.io, ip-api.com, and myip.ipip.net.
  • Consistency Check: Warns if different providers see different IPs (a sign of transparent proxies or split routing).
    一致性检查:如果不同提供商看到不同的 IP(透明代理或路由分流的迹象),则发出警告。
  • JSON Output: Easy to parse for scripts.

💻 Usage / 用法

python checkip.py

Output Example:

{
"ip": "203.0.113.1",
"city": "Prague",
"region": "Prague",
"country": "CZ",
"org": "AS12345 Example ISP"
}

Stop guessing. Know your egress.
停止猜测。掌握你的出口。