Latest Socket ResearchMalicious Chrome Extension Performs Hidden Affiliate Hijacking.Details
Socket
Book a DemoInstallSign in
Socket

ipify-cli

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipify-cli

Get your public IP address

latest
Source
npmnpm
Version
5.0.0
Version published
Maintainers
1
Created
Source

ipify-cli

Get your public IP address

Using the ipify API or a custom ipify instance.

Install

npm install --global ipify-cli

Usage

$ ipify --help

  Usage
    $ ipify

  Options
    --endpoint  Custom API endpoint (can be used multiple times for redundancy)

  Examples
    $ ipify
    2001:0db8:85a3:0000:0000:8a2e:0370:7334
    $ ipify --endpoint=https://ipify.mycompany.com
    2001:0db8:85a3:0000:0000:8a2e:0370:7334
    $ ipify --endpoint=https://api.ipify.org --endpoint=https://ipify.example.org
    2001:0db8:85a3:0000:0000:8a2e:0370:7334

Multiple Endpoints

You can specify multiple endpoints for redundancy. The CLI will try all endpoints concurrently and return the first successful response:

$ ipify --endpoint=https://api.ipify.org --endpoint=https://api64.ipify.org --endpoint=https://backup.example.com
  • ipify - API for this package

Keywords

cli-app

FAQs

Package last updated on 15 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts