Skip to content

A utility to get the public IP address of the host.

Notifications You must be signed in to change notification settings

sbzsilva/callip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

callip

Rust Version MIT Licensed GitHub top language GitHub last commit ViewCount

A simple Rust command-line utility to retrieve and display your public IP address.

Features

  • Retrieves your public IP address using an external API
  • Simple and fast command-line interface
  • Cross-platform support (Windows, macOS, Linux)
  • Help documentation and usage examples

Installation

From Source

  1. Install Rust and Cargo:

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  2. Clone the repository:

    git clone https://github.com/sbzsilva/callip.git
    cd callip
  3. Build the application:

    cargo build --release
  4. Install the binary:

    sudo cp target/release/callip /usr/local/bin/

Using Cargo

cargo install --git https://github.com/sbzsilva/callip.git

Usage

Basic Usage

callip

This will display your public IP address:

Your public IP address is: [0.0.0.0]

Help Information

callip --help

This will display help information:

Gets the public IP address of the host

Usage: callip

Options:
  -h, --help     Prints help information
  -h, --help     Print help
  -V, --version  Print version

For more information, visit https://github.com/sbzsilva/callip

Development

Setting Up the Development Environment

  1. Install Rust and Cargo:

    curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  2. Clone the repository:

    git clone https://github.com/sbzsilva/callip.git
    cd callip
  3. Install dependencies:

    cargo build

Running the Application

cargo run

Building for Release

cargo build --release

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

A utility to get the public IP address of the host.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages