Skip to content
/ gip Public

Get your public IP from the command line.

Notifications You must be signed in to change notification settings

TwiN/gip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gip

Get your public IP from the command line.

From the same collection as show-my-ip, a Firefox extension that does just that.

installation

Usage

Type the following in a command line:

gip

And as a result, your public IP is returned.

Installation

You can either use a precompiled binary from the release section, or you can build it yourself by doing the following, assuming you have a working Go environment:

go get -u github.com/TwinProduction/gip

Custom API URL

By default, this uses my website's API - https://twinnation.org/api/v1/ip

Want to use a different API for getting the IP?

No problem, all you have to do is set the GIP_API_URL environment variable to the API of your choice.

Here are some APIs you can use:

About

Get your public IP from the command line.

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages