Git Product home page Git Product logo

ipaddressreporter's Introduction

IP Address Reporter

What?

Reports external IP address to specified email addresses and (optionally) updates a godaddy host to point to the specfic IP.

But Why?

Two primary reasons:

  • I want to access my home server via RDP from anywhere remotely.
  • COVID-19 is giving me extra time to work on some fun side projects.

How do I use this?

2 things need to be done before its ready to work.

  1. Fill out the appsettings.json file.
    1. RecipientEmails - Array of string emails ex: ["[email protected]"]
    2. LogFileLocation - Optional, list the directory where you want to log, if not provided, it will log to the console.
    3. SendEmails - set this to true
    4. Set the email credentials, for EmailDisplayName, put a name in there, it'll show up as the sender in the email. Use app password feature in gmail.
    5. WaitTimeSeconds - The wait time between IP checks, I set it to an hour.
    6. Host - The host name you own on GoDaddy
    7. GoDaddyAPISecrets - GoDaddy API Key and Secret, and the URL you'd like to point to, testing API https://api.ote-godaddy.com or the production API https://api.godaddy.com
  2. Compile and run.

I have personally set this up as a service.

Limitations/Notes

  • Currently only supports gmail as the email provider and godaddy as the host provider.
  • Uses http://checkip.amazonaws.com/ to find out external IP address.
  • Uses a file logger/console logger.

Troubleshooting

Check the log file for output/exceptions.

ipaddressreporter's People

Contributors

tahankhan 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.