Skip to content

Python script that sends current IP, and PC name to the given server's end point.

License

Notifications You must be signed in to change notification settings

intentlab-iitk/updateMyIP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

UPDATE MY IP

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.

Prerequisites

  • As of now support is avialble only for Linux systems with systemd.

Installation [Linux]

  1. Clone the Repository

    git clone https://github.com/intentlab-iitk/updateMyIP && cd updateMyIP
  2. 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).

  3. 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.
  4. 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.

Uninstallation

  1. 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
  2. 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.

Debugging

To debug and view logs generated by the script, use journalctl:

  • View logs for the IP monitoring script:

    journalctl -b -t updateMyIP

License

This project is licensed under the MIT License. See the LICENSE file for details.

Author

Aravind Potluri <[email protected]>

About

Python script that sends current IP, and PC name to the given server's end point.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages