This project is designed to monitor IP address changes on a system and automatically send updates to a remote server. It integrates seamlessly with our web login system at INTENT Labs, allowing you to securely view your current IP address on the website.
Whether you're managing a lab network or simply want to keep track of your device's IP changes, this tool provides a reliable and automated solution.
- As of now support is avialble only for Linux systems with
systemd
.
-
Clone the Repository
git clone https://github.com/intentlab-iitk/updateMyIP && cd updateMyIP
-
Set Up Your Password
Before proceeding with the installation, you must set your password in the
updateMyIP.sh
script.nano linux/updateMyIP.sh
Locate the line with
ACTUAL_PASSWORD="PASSWORD_HERE"
and replace "PASSWORD_HERE
" with your web login password.Save and close the file (
CTRL+S
,CTRL+X
). -
Run the Installation Script
sudo linux/install.sh
This script will:
- Copy the IP monitoring script (
updateMyIP.sh
) to/etc/NetworkManager/dispatcher.d/
. - Make it executable.
- Restart NetworkManager to apply changes.
- Copy the IP monitoring script (
-
Clean Up
Once the installation is complete, you can safely remove the cloned repository by running:
cd .. && rm -rf updateMyIP
If you encounter any problems, check the logs using the Debugging section below.
-
Navigate to Repository
Navigate to the existing clone of the repository or clone it freshly
git clone https://github.com/intentlab-iitk/updateMyIP && cd updateMyIP
-
Run the uninstallation script
sudo linux/uninstall.sh
This script will:
- Remove the IP monitoring script from
/etc/NetworkManager/dispatcher.d/
. - Remove the temporary IP file.
- Restart NetworkManager.
- Remove the IP monitoring script from
To debug and view logs generated by the script, use journalctl
:
-
View logs for the IP monitoring script:
journalctl -b -t updateMyIP
This project is licensed under the MIT License. See the LICENSE file for details.
Aravind Potluri <[email protected]>