Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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.