A simple Rust command-line utility to retrieve and display your public IP address.
- 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
-
Install Rust and Cargo:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Clone the repository:
git clone https://github.com/sbzsilva/callip.git cd callip -
Build the application:
cargo build --release
-
Install the binary:
sudo cp target/release/callip /usr/local/bin/
cargo install --git https://github.com/sbzsilva/callip.gitcallipThis will display your public IP address:
Your public IP address is: [0.0.0.0]
callip --helpThis 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
-
Install Rust and Cargo:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-
Clone the repository:
git clone https://github.com/sbzsilva/callip.git cd callip -
Install dependencies:
cargo build
cargo runcargo build --releaseThis project is licensed under the MIT License - see the LICENSE file for details.