Skip to content

Latest commit

 

History

History
60 lines (47 loc) · 2.42 KB

README.en.md

File metadata and controls

60 lines (47 loc) · 2.42 KB

AODI·Auto-obtain-dynamic-IP

home Python 3 MIT

中文English

Background

AODI is a small tool developed based on the Python language. It can be used to regularly update the dynamically changing public network IP and push it to the mailbox to provide certain services for various remote services. Application scenarios such as remote control to connect to the PC at home, because you only need to know the public network IP of the current remote device, so reducing the use of DDNS deployment will appear flexible and light.

Install & Configuration

Install

# Linux
git clone https://github.com/linwhitehat/AODI.git /root/rootcrons/
crontab /root/rootcrons/rootcron
/etc/init.d/cron restart

Configuration

This project is developed using python3, the following libraries are required to support normal operation:

  • email
  • smtplib
  • requests
  • time
  • json
  • re

The basic configuration of the tool includese-mail configRouter configandheadersofpublic IP config,these are commented at the corresponding position of the code block.

Notice

The configuration information involves personal sensitive content. Please DO NOT leave any personal private content in the open network environment.

Usage

Run directly under the command line (IDE) or customize timing use:

# Run directly
python3 AODI.py

# Run regularly
vim /root/rootcrons/rootcron
0 * */1 * * /usr/bin/python /root/rootcrons/reportip.py
crontab /root/rootcrons/rootcron
/etc/init.d/cron restart

GUIDE

AODI-GUIDE

Contributing

Feel free to dive in! Open new issue or submit PRs.

License

MIT © linwhitehat