public-ip is a Node.js package to reliably determine your public IP address. It fetches your IPv4 or IPv6 address from multiple services to ensure accuracy and provides options to customize the timeout and services utilized. Essential for applications requiring external network information, public-ip simplifies IP address retrieval, handling edge cases and providing robust results in various network configurations. It offers both promise-based and callback interfaces for asynchronous operation.
The public-ip npm package has seen irregular release frequency since its inception in September 2014. There were bursts of activity in 2014, 2017 and 2022, with February 2017 seeing 7 releases. Releases slowed significantly after 2022, with only 3 minor version releases since then, in March 2024 and July 2024. There have been no releases in 2025 until August, and no releases in August 2025 either.
Public-ip npm package downloads show a general upward trend from March 2024 to August 2025, peaking at 823,058 in July 2025. September 2025 data, being incomplete, shows significantly lower downloads at 216,411.