Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 540 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 540 Bytes

Myip

Myip is a simple command tool to obtain the users public IP address using the ipify.org API

Prerequisites

A system with Go installed

Installing

Compile the tool as follows

go build

Run the tool from current folder or copy to location in your path, such as /usr/local/bin/

Alternatively, use go install (requires correct configuration of the $GOBIN environment variable)

go install myip

Usage

$ myip
20.30.40.50

$ myip -output=json
{"ip":"20.30.40.50"}

$ myip -version
myip, version:0.1