sindresorhus/public-ip
Get your public IP address - very fast! observed · 2026-08-28
Health v2 · maintenance only
45/100
- Activity 43
- Release rhythm 16
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4371
- days_rel: 346
- days_push: 346
- n_releases_24m: 1
Adoption not part of the score
1061 stars · 69 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A JavaScript library for Node.js and browsers that quickly retrieves the machine's public IP address (IPv4 or IPv6) via DNS queries to OpenDNS/Google DNS with HTTPS service fallbacks. It offers a promise-based API with timeout, abort signal, and custom fallback endpoint support.
Use cases
- get my public ip address in nodejs
- detect external ipv4 address of a machine
- check public ipv6 address from the browser
- find out a server's outbound ip programmatically
- fast public ip lookup via dns
When to choose
- you need a fast public IP lookup in Node.js or the browser
- you want DNS-based detection with HTTPS fallback for reliability
- you need IPv4 and IPv6 support with timeout and cancellation
When to avoid
- you need to know a local/private IP address
- you need geolocation or ISP details about the IP
- you require a strictly tamper-proof HTTPS-only lookup and can't tolerate slower responses
Facets
library · maturity active
http-client networking networking developer-tools web-development browser public-ip ipv4 ipv6 dns-lookup ipify opendns nodejs javascript
2 sources
- readme: https://github.com/sindresorhus/public-ip · fetched 2026-08-28 · e2511fdf35a8
- registry_npm: https://registry.npmjs.org/public-ip · fetched 2026-08-29 · 770e61843e02
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| sindresorhus/public-ip | main | 45 |
For agents
markdown · JSON · MCP: product_card(name="sindresorhus/public-ip")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem