by sindresorhus

sindresorhus / public-ip-cli

Get your public IP address

202 Stars 5 Forks Last release: almost 2 years ago (v2.0.0) MIT License 13 Commits 5 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

public-ip-cli Build Status

Get your public IP address


$ npm install --global public-ip-cli


$ public-ip --help

Usage $ public-ip

Options --ipv4, -4 Return the IPv4 address (default) --ipv6, -6 Return the IPv6 address --https, -h Use HTTPS instead of DNS --timeout=, -t Timeout in milliseconds (default: 5000)

Example $ public-ip

$ time public-ip

real 0.08s user 0.05s sys 0.02s




MIT © Sindre Sorhus

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.