# public-ip-cli **Repository Path**: mirrors_sindresorhus/public-ip-cli ## Basic Information - **Project Name**: public-ip-cli - **Description**: Get your public IP address - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-19 - **Last Updated**: 2026-05-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # public-ip-cli > Get your public IP address ## Install ```sh 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=, -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 ``` ## Related - [public-ip](https://github.com/sindresorhus/public-ip) - API for this package