ipclip

Introduction

Ever needed a quick way to grab your local IP address and copy it to the clipboard? This Rust-based tool does just that. It fetches your machine's local IP address and copies it to the clipboard using xclip (Linux) or clip.exe (Windows).

This tutorial will guide you through setting up, building, and using the tool on both Linux and Windows systems.


Features

  • Automatically retrieves your local IP address.
  • Copies the IP address to the clipboard for quick pasting.
  • Works on both Linux and Windows without modifications.

Future Plans

  • Add functionality to retrieve and copy the public IP address as well.

TIP: Bind the binary to a shortcut key, to copy your local IP easily.


Requirements

Linux

  • Linux operating system (tested on Ubuntu, Debian, Fedora, and Arch Linux).
  • Rust programming language and Cargo build system.
  • xclip utility installed (sudo apt-get install xclip on Debian-based systems).

Windows

  • Windows operating system.
  • Rust programming language and Cargo build system.
  • clip.exe (built into Windows, no extra installation needed).

Getting Started

1. Clone the Repository

git clone https://github.com/TheDarkArtist/ipclip.git
cd ipclip

2. Install Rust

If Rust isn't installed, install it using:

Linux:

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

Windows:

Visit Rust Installation and follow the instructions.

3. Install xclip (Linux Only)

sudo apt-get install xclip   # Debian-based
yay -S xclip                # Arch Linux
sudo dnf install xclip       # Fedora

4. Build the Project

Linux:

cargo build --release

Windows:

cargo build --release --target=x86_64-pc-windows-gnu

Usage

Once built, run the executable to copy the local IP address to the clipboard:

Linux:

./target/release/ipclip

Windows:

.	arget\release\ipclip.exe

After running the command, simply paste (Ctrl + V) your IP address wherever needed.


Future Plans

  • Add functionality to retrieve and copy the public IP address as well.

Tip

  • Add functionality to retrieve and copy the public IP address as well.

Contributing

Want to improve this tool? Contributions are welcome!

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Commit your changes (git commit -m "Add new feature").
  4. Push to the branch (git push origin feature-branch).
  5. Submit a pull request.

For major changes, open an issue first to discuss potential updates.


Conclusion

This simple yet effective tool makes retrieving and copying your local IP address hassle-free. Whether you're debugging network issues or just need to quickly paste your IP somewhere, ipclip gets the job done efficiently.

Give it a try and feel free to contribute to its development!

Created At

Tue, Jun 24, 2025

Last Updated at

Tue, Jun 24, 2025

Project Tags

  • ipclip
  • Rust
  • yay
  • archlinux
  • aur

Average Reading Time

2 Minutes | 402 Words

    ipclip | Kushagra Sharma @ TheDarkArtist