Skip to content

A simple Bash script that checks your external IP address and sends it to your Telegram chat. Useful for monitoring your public IP (especially behind a VPN) without manually checking.

License

Notifications You must be signed in to change notification settings

Angrido/IP-Notifier-Telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“‘ IP Notifier Telegram

A simple Bash script that checks your current external IP address and sends it to your Telegram chat.
Perfect for monitoring VPN connections, dynamic IPs, or just keeping an eye on what your server is exposing. πŸ”


✨ Features

  • πŸ“€ Sends your IP address to Telegram automatically
  • πŸ” Easy to schedule via cron
  • πŸ” Keeps your IP monitoring private (no web UI or third-party dashboards)
  • 🐧 Designed for Linux (Debian/Ubuntu tested)

βš™οΈ Setup Instructions

1. Download the Script πŸ“₯

Download the script from GitHub:

wget https://raw.githubusercontent.com/Angrido/IP-Notifier-Telegram/main/ip-notifier-telegram.sh
chmod +x ip-notifier-telegram.sh

2. Create a Telegram Bot πŸ€–

  1. Open Telegram and search for @BotFather
  2. Type /newbot and follow the instructions
  3. Copy the bot token (it looks like 123456789:ABCDefGhiJkLmNOpQrStUvWxYz)

3. Get Your Telegram Chat ID πŸ‘€

  1. Open Telegram and search for @userinfobot
  2. Send /start
  3. Note your User ID (a number like 123456789)

4. Configure the Script πŸ“

Open the downloaded script and replace the placeholder values:

BOT_TOKEN="your_bot_token_here"
CHAT_ID="your_user_id_here"

5. Test It πŸ”

Run the script manually to test:

./ip-notifier-telegram.sh

You should receive a Telegram message with your current IP. πŸŽ‰


6. Schedule It with Cron ⏰

To run the script every hour, open your crontab:

crontab -e

Add this line (adjust the path if needed):

0 * * * * /root/ip-notifier-telegram.sh

πŸ“ Example Output in Telegram

🌐 Current external IP: 123.123.123.0

About

A simple Bash script that checks your external IP address and sends it to your Telegram chat. Useful for monitoring your public IP (especially behind a VPN) without manually checking.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages