An open API service indexing awesome lists of open source software.

https://github.com/iqhater/myip

"myip" is a tiny utility to show external and local IP with binded adapter name.
https://github.com/iqhater/myip

cli-utility external-ip internal-ip ipaddress myip network network-interface

Last synced: 6 months ago
JSON representation

"myip" is a tiny utility to show external and local IP with binded adapter name.

Awesome Lists containing this project

README

          

myip







go-report-card

`myip` is a simple and convenient CLI tool for retrieving your local and external IP address.

## 🚀 Installation

Install `myip` using `go install`:

```sh
go install github.com/iqhater/myip@latest
```

Then, add it to your `PATH` if necessary:

```sh
export PATH=$HOME/go/bin:$PATH
```

## 🛠 Usage

Simply run the command:

```sh
myip
```

You will get the following output:

```sh
Local interface name: vEthernet (hyperV-external)
Internal IP (IPv4): 10.180.0.60
External IP (IPv4): 42.30.210.106
Country: Netherlands
Country Code: NL
```

## 📜 License

This project is licensed under the [MIT License](LICENSE).

---

💡 *Star us on GitHub if you like this project!* ⭐