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.
- Host: GitHub
- URL: https://github.com/iqhater/myip
- Owner: iqhater
- License: mit
- Created: 2018-12-01T12:33:40.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-03-09T16:43:07.000Z (7 months ago)
- Last Synced: 2025-03-09T17:25:01.550Z (7 months ago)
- Topics: cli-utility, external-ip, internal-ip, ipaddress, myip, network, network-interface
- Language: Go
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
myip
`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!* ⭐