51
GitHub - sindresorhus/public-ip-cli: Get your public IP address
source link: https://github.com/sindresorhus/public-ip-cli
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
readme.md
public-ip-cli
Get your public IP address
Install
$ npm install --global public-ip-cli
Usage
$ 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=<ms>, -t Timeout in milliseconds (default: 5000)
Example
$ public-ip
46.5.21.123
$ time public-ip
46.5.21.123
real 0.08s
user 0.05s
sys 0.02s
Maintainers
Related
- public-ip - API for this module
License
MIT © Sindre Sorhus
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK