LoginSignup
2

More than 3 years have passed since last update.

自宅のグローバル IP を LINE に定時報告

Posted at

外から ssh したいとき、ちょいちょい IP アドレス変わってて面倒なので、LINE に定期的に報告させる。
一行でお手軽に。LINE Notify て便利ですねー。


curl -X POST -H 'Authorization: Bearer <token>' -F "message=`curl -4 ifconfig.co`" https://notify-api.line.me/api/notify

<token> に LINE Notify のトークン入れて、好きなお時間に cron 仕込んでおけば完成。

https://github.com/8mamo10/ip_notifier
https://notify-bot.line.me/

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2