GithubHelp home page GithubHelp logo

mo7amd / myip Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 28 KB

I use this tool to get my current Global IP address as I need its value to whitelist Home's IP on my company firewall.I needed this tool since I work from home now and my ISP doesn't provide static IPs.

License: GNU General Public License v3.0

Go 98.01% Shell 1.99%

myip's Introduction

MyIP CLI Tool

GitHub go.mod Go version GitHub license GitHub issues
GitHub stars GitHub forks

I use this tool to get my current Global IP address as I need its value to whitelist Home's IP on my company firewall.I needed this tool since I work from home now and my ISP doesn't provide static IPs.


Optional Dependency

the tool not only get the IP address it also get geolocation info of your IP address using ipify. they have a nice free plan of 1000 request per month which is nice for personal use. so if you want the Geolocation part to work please do the following:

  • create an account at ipify
  • get the apiKey of your own
  • rename example.env file to .env file and past your apiKey there on there

otherwise just ignore that part.


Download and Install (Unix systems)

  • Download Bin from here
  • copy or link it to your bin to use it as a program copy
cp main /usr/local/bin/myip

link

ln -s $PWD/main /usr/local/bin/myip

Build the project yourself

  • clone the repo
git clone [email protected]:mo7amd/myip.git
  • change dir to it
cd myip
  • build the package
go build main.go
  • copy or link it to your bin to use it as a program copy
cp main /usr/local/bin/myip

link

ln -s $PWD/main /usr/local/bin/myip

I personally prefer the link version as it keep the bin updated when I rebuild the package, you got the options suit yourself.

myip's People

Contributors

mo7amd avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.