For Internet penetration. Only Mi WiFi Router.
小米路由器自动获取真实公网IP,以供内网穿透。
Plz specific password, start_day/time, router_ip
in main.py
before run.
使用前请先修改main.py
内password, start_day/time, router_ip
值。
run python3 main.py listen
in terminal for servers(such as your Raspberry Pi which you want to get real ip).
使用以上命令可以使本脚本持续运行于服务器(比如树莓派)中。
or run python3 main.py get
to get the ip only once.
使用以上命令仅获取一次IP。
- Web hook for notification when IP change
- Thread mode for server run
- Optional parameter for shell command
Python 3
and requests
library
pip3 install requests
for installing requests
utils.py partly from this repo.
LollipopKit 2020
Apache License 2.0