Giter Site home page Giter Site logo

global-ip-checker's Introduction

Global Ip Checker

What is it?

Simply, this CLI tool is to watch your global ip and notify you if there has been any changes.

It uses the ipify api to check the current expose global ip.

Dependencies

This is written in GO 1.20 so you might have to have that installed.

Build

go build .

Should compile and give you the correct executable.

But if you dont really care, you can just go run main.go ~ and that should work fine as well.

Usage

Current ip

This will get you your current ip address.

$ global-ip-checker current

Watch

This will tell the program to watch for changes in your current ip

$ global-ip-checker watch "your.ip.address.here`

Rate

By default it will poll the ipify endpoint every minute (60 seconds)

But you can specify the rate of polling with the -r flag

$ global-ip-checker watch "your.ip.address.here" -r 60

Rate is per seconds. So if you need to limit the polling to 5 minutes you need to set it for 300

Notifications

Global Ip Checker uses the beeep library for notifications.
If it detects any changes you will get a notification message.

Disclaimer

This works on my computer (macOS) and I haven't tested it on windows or any other OS so you might find that it doesn't work for you so.... sorry ๐Ÿ™‡ ๐Ÿ˜…

There are probably a bunch of bug with this code so if you would like fix them, please feel free to open a Pull Request ๐Ÿ˜„

TODO

WIP

global-ip-checker's People

Contributors

dtdao avatar motoish 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.