Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jozan/ip-addr
A super simple tool to get IP address
https://github.com/jozan/ip-addr
Last synced: 30 days ago
JSON representation
A super simple tool to get IP address
- Host: GitHub
- URL: https://github.com/jozan/ip-addr
- Owner: jozan
- Created: 2015-09-20T12:38:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-20T13:35:34.000Z (over 9 years ago)
- Last Synced: 2024-11-14T11:17:18.472Z (3 months ago)
- Language: Go
- Homepage:
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ip-addr
A super simple tool to get local or public IP address.#### Usage
```
$ ip -h
Usage of ip:
-l, --local=false: Print local IP address
-p, --public=false: Print public IP address
```Copy public IP into clipboard (on Mac):
```
$ ip -p | pbcopy
```#### How to install
1. Download and install [Go](https://golang.org/)
2. Clone this repo
3. Run `go build ip.go` in the cloned directory
4. Move binary to somewhere f.e.