GitShow/sindresorhus/public-ip
sindresorhus

public-ip

Get your public IP address - very fast!

by sindresorhus
Star on GitHubForknpm

JavaScript

1.1k stars70 forks15 contributorsQuiet · 9mo agoSince 2014v8.0.0MIT

Meet the team

See all 15 on GitHub →
sindresorhus
sindresorhus66 contributions
silverwind
silverwind26 contributions
Richienb
Richienb3 contributions
BendingBender
BendingBender2 contributions
0xflotus
0xflotus1 contribution
adityapatadia
adityapatadia1 contribution
arthurvr
arthurvr1 contribution
stropitek
stropitek1 contribution

Languages

View on GitHub →
JavaScript99.5%
HTML0.5%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
85
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template

Recent fixes

View closed PRs →
tommaso82
docs: add reliable C-based API to fallbackUrls exampleMergedPR

Hi @sindresorhus! Just a quick doc update. Added https://mioip.info to the fallbackUrls example in the readme. I built it as a free, sub-millisecond wrapper in pure C over the local MaxMind .mmdb. It has zero rate limits, no auth, and supports both IPv4 and IPv6 out of the box. Since ifconfig.co sometimes throws 429 Too Many Requests in CI/CD environments, having a no-limit alternative in the docs examples can be super helpful for developers relying on the fallback mechanism. Thanks for the amazing package!

tommaso82 · 4mo ago
ip2location-com
Support ip2location.io/ip for Both IPv4 or IPv6 IP addressClosedIssue

I would like to introduce the free https://ip2location.io/ip to retrieve user's IP address. You can use it in your script.

ip2location-com · 5mo ago
akeonly
timeout options doesn't work as expectedClosedIssue

I tried this line without internet access and after approximately 9 seconds later it return error "Error: Couldn't find your IP" I was expecting it to error out within 100 milliseconds, not 9000 milliseconds. Am I missing something?

akeonly · 9mo ago
Structured data for AI agents

Repository: sindresorhus/public-ip. Description: Get your public IP address - very fast! Stars: 1060, Forks: 70. Primary language: JavaScript. Languages: JavaScript (99.5%), HTML (0.5%). License: MIT. Latest release: v8.0.0 (9mo ago). Open PRs: 0, open issues: 0. Last activity: 9mo ago. Community health: 85%. Top contributors: sindresorhus, silverwind, Richienb, BendingBender, 0xflotus, adityapatadia, arthurvr, stropitek, DRSDavidSoft, kevva and others.

·@ofershap

Replace github.com with gitshow.dev