English | 简体中文
ipmint is a command-line IP quality checker written in Go. It tells you
whether an IP address is a native residential IP, a datacenter / hosting
IP, or a broadcast IP, how its reputation looks, and whether it can
reach Netflix, Disney+, YouTube, TikTok, Spotify, ChatGPT, Claude and
Gemini. It works on the machine it runs on, on any remote IP, or through an
HTTP or SOCKS5 proxy.
It ships as one static binary for Linux, macOS and Windows. No root, no dependencies, no API key required.
Commercial IP databases are easy to influence with geofeeds, so a hosting range can be sold as "residential" or "native". ipmint does not trust a single label. Its Carrier Reality Verdict cross-checks five independent layers and shows you where they disagree:
| Layer | Question it answers |
|---|---|
| Registry (RDAP / WHOIS) | Who holds the block, and in which country is it registered? |
| BGP (RIPEstat) | Which prefix and origin ASN are actually in the routing table? |
| PeeringDB | What does the origin network say it is: access ISP, content, transit, enterprise? |
| Reverse DNS | Does the PTR name look like a subscriber line or like a server? |
| Commercial databases | What do IP intelligence vendors call it? |
━━ IPv4 8.8.8.8 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
▌ CARRIER REALITY VERDICT
Native Datacenter / Hosting
class: hosting · native: yes · confidence: high
Layer Observed Reads as
Registry GOGL · Google LLC · US -
BGP 8.8.8.0/24 ← AS15169 · GOOGLE - Google LLC · US -
PeeringDB Google LLC · Content · Global · 152 IX / 135 fac hosting
rDNS dns.google -
Commercial DBs ip-api.com=hosting, ipquery.io=hosting, proxycheck.io=business hosting
Geolocation US (5/5 sources) -
✓ Commercial databases label the address HOSTING and PeeringDB lists AS15169 as "Content"
✓ Registration country US matches geolocation consensus
Download a binary from the latest release:
# Linux x86-64 (use ipmint-linux-arm64 on ARM servers)
curl -fsSL -o ipmint https://github.com/Link2theWorld/ipmint/releases/latest/download/ipmint-linux-amd64
chmod +x ipmint && ./ipmint# macOS Apple Silicon (use ipmint-darwin-amd64 on Intel)
curl -fsSL -o ipmint https://github.com/Link2theWorld/ipmint/releases/latest/download/ipmint-darwin-arm64
chmod +x ipmint && ./ipmint# Windows
iwr https://github.com/Link2theWorld/ipmint/releases/latest/download/ipmint-windows-amd64.exe -OutFile ipmint.exe; .\ipmint.exeOr build from source with Go:
go install github.com/Link2theWorld/ipmint/cmd/ipmint@latestSHA256SUMS is attached to every release.
ipmint # check this machine's IPv4 and IPv6 egress
ipmint -4 # IPv4 only
ipmint -t 8.8.8.8 # check a remote IP
ipmint -x socks5://user:pass@host:1080 # check the IP a proxy exits from
ipmint -i eth1 # leave through a specific interface
ipmint --json | jq '.results[0].carrier_verdict'| Flag | Meaning |
|---|---|
-4 / -6 |
Check only the IPv4 or IPv6 egress. Default: both, if available. |
-t, --target <IP> |
Check a remote address. Outbound checks (port 25, streaming) are skipped, because they describe the machine running the tool. Add --proxy to run them through the target. |
-x, --proxy <URL> |
Route probes through http://, https:// or socks5://, with optional user:pass@. |
-i, --interface <name> |
Bind outbound sockets to a network interface. |
--abuseipdb-key |
AbuseIPDB v2 key. Env: ABUSEIPDB_API_KEY. |
--cleantalk-key |
CleanTalk auth key. Env: CLEANTALK_API_KEY. |
--ipapiis-key |
Optional ipapi.is key, for its usage-type and risk fields. Env: IPAPIIS_API_KEY. |
--json |
Print the full report as JSON on stdout. |
--no-color |
Disable ANSI colours. NO_COLOR is honoured too, and colours are off when stdout is not a terminal. |
--timeout <dur> |
Timeout for each probe. Default 8s. |
No key is ever compiled in. Without a key, AbuseIPDB and CleanTalk are shown
as Skipped (set …) with a link for a manual lookup. ipmint does not scrape
their web pages.
| Section | Sources |
|---|---|
| IP geolocation, ASN, ISP | ipinfo.io, ip-api.com, ipapi.is, proxycheck.io, ipquery.io |
| WHOIS / RDAP | rdap.org (redirects to ARIN, RIPE, APNIC, LACNIC, AFRINIC). Falls back to raw port-43 WHOIS via whois.iana.org when RDAP fails or lacks a field. |
| BGP routing | RIPEstat network-info, as-overview, rir-stats-country, asn-neighbours |
| ASN identity | PeeringDB net (info_type, info_scope, ix_count, fac_count) |
| Reverse DNS | PTR lookup, classified by naming pattern |
| IP type and risk | ISP / hosting / business / education / mobile, plus proxy, VPN, Tor, datacenter and abuser flags, aggregated across sources and the Tor Project exit list |
| IP reputation | AbuseIPDB v2 check, CleanTalk spam_check |
| AI services | OpenAI / ChatGPT, Anthropic / Claude, Google Gemini |
| Streaming unlock | Netflix (full or originals only), Disney+, YouTube Premium, TikTok, Spotify |
| Outbound port 25 to Gmail, QQ and Outlook MX hosts; DNSBL lookups (Spamhaus ZEN, Barracuda, SpamCop, UCEPROTECT, PSBL, DroneBL, Mailspike) |
Every probe runs concurrently under its own timeout. A source that fails, is
rate limited or has no key becomes N/A (reason) or Skipped (reason) in its
own field. It never stops the run.
The network class comes from comparing the commercial label with the two infrastructure layers, PeeringDB and rDNS. Nativity comes from comparing the registration country with where the address is actually used.
| Verdict | When |
|---|---|
Native Residential ISP, Native Mobile Carrier |
Commercial label is ISP or mobile and nothing in the infrastructure contradicts it. Confidence is high only when PeeringDB or rDNS confirms it. |
Native Datacenter / Hosting |
Commercial label is hosting. |
Suspected Geofeed-Washed Hosting (Commercial=ISP, PeeringDB/PTR=Datacenter) |
Commercial label is ISP, but PeeringDB lists the ASN as Content or the PTR uses hosting names, and neither layer points to an access network. |
Broadcast / Swapped IP (RDAP ≠ BGP) |
The registration country differs from the country where the address is located and announced. |
Likely Residential ISP (commercial Hosting label disputed) |
Commercial label is hosting, but the infrastructure layers point to an access network. |
Not Announced in BGP |
No prefix in the routing table covers the address. |
Inconclusive |
Not enough independent evidence. |
PeeringDB NSP is treated as neutral, because transit operators sell to both
access and hosting customers. Each verdict lists the evidence for and against
it. The rules live in internal/audit/verdict.go and are covered by table
tests.
How do I check whether a VPS IP is native or broadcast?
Run ipmint on the VPS, or ipmint -t <IP> from anywhere. The verdict says
Native … when the registration country matches where the address is used,
and Broadcast / Swapped IP when it does not.
How do I tell a real residential IP from a datacenter IP sold as residential?
Look for Suspected Geofeed-Washed Hosting. It appears when IP databases say
"ISP" while PeeringDB or the PTR record says the network is a hosting one.
Can I check the IP of my proxy node?
Yes: ipmint -x socks5://host:port or ipmint -x http://host:port. The
report then describes the proxy's exit IP, including streaming and AI access.
Does it need root, Python, curl or jq?
No. It is a single static binary built with CGO_ENABLED=0.
Does it need API keys? No. Keys for AbuseIPDB, CleanTalk and ipapi.is are optional and add detail.
Can I use it in scripts?
Yes. --json prints the whole report as structured JSON.
- Streaming and AI checks are heuristics over public pages and can go stale when a provider changes its site. The Disney+ check is coarse: it only tells whether the storefront is served. An exact entitlement check needs Disney's device-token flow and its client key, which ipmint does not embed.
- Port 25 is reported open only after a real SMTP
220greeting. A TCP handshake alone is not proof, since transparent proxies accept every connection locally. - DNSBL needs an honest resolver. Answers outside
127.0.0.0/8(fake-IP proxies, captive portals) are reported asN/A (unexpected answer …). Spamhaus return codes127.255.255.252/254/255are reported asquery refused, not as a listing. A PBL-only answer is shown as apolicy listing, which is normal for residential ranges. - SORBS is not queried. The service shut down in June 2024.
- With a proxy, the proxy picks the address family for dual-stack
destinations. Port 25 and WHOIS need raw TCP, so they work through SOCKS5
only and are
N/Abehind an HTTP proxy. Proxy environment variables are ignored; only--proxyis used. -ion Linux usesSO_BINDTODEVICE. Without the privilege for it, ipmint falls back to binding the interface's source address. DNS lookups always use the system resolver.- Keyless tiers are rate limited (for example ipinfo.io and proxycheck.io).
Heavy use shows up as
N/A (rate limited). - ipmint sends the audited IP address to the third-party services listed above. Nothing else is sent, and nothing is sent to the author.
make build # ./ipmint for the current platform
make cross # dist/ipmint-{linux,darwin,windows}-{amd64,arm64} + SHA256SUMS
make check # go vet + go testTests mock every external service with httptest servers, local TCP
listeners and a fake resolver, so they run offline. Pushing a v* tag runs
.github/workflows/release.yml, which tests, cross-compiles and publishes
the binaries.
cmd/ipmint/ CLI flags, environment, exit codes
internal/netutil/ dialers and HTTP clients: family forcing, interface binding, proxies
internal/model/ the typed report, serialisable to JSON
internal/probe/ one isolated Prober per data source
internal/audit/ usage and risk aggregation, carrier reality verdict
internal/render/ terminal renderer and JSON output
internal/runner/ concurrent orchestration with errgroup
Each source implements one interface, so adding a source is one file:
type Prober interface {
Name() string
Probe(ctx context.Context, ip netip.Addr, rep *model.IPReport)
}GPL-3.0-or-later. ipmint is an independent, from-scratch implementation and contains no code from other IP checking scripts.
问题和建议请提 Issue,也欢迎 Pull Request;其他事情请发邮件到 i@fand.dev。
Questions and suggestions: open an issue; pull requests are welcome. Anything else: i@fand.dev.