NetLocator is a simple yet powerful Python utility designed to fetch the current IPv4 address of your machine. Whether you're working on a development machine or managing servers, NetLocator makes it easy to retrieve your IP address with just a few lines of code.
To install NetLocator, simply run:
pip install netLocator
get_ip_address from netLocatorTo use the get_ip_address function from the netLocator module, follow these steps:
get_ip_address function from the netLocator module.get_ip_address() function to retrieve the current IPv4 address of your machine.from netLocator import get_ip_address
# Retrieve the current IPv4 address
ip_address = get_ip_address()
# Print the IP address
print(f"Your current IP address is: {ip_address}")
Contributions are welcome! Please feel free to submit a pull request or open an issue if you encounter any problems.
NetLocator is licensed under the MIT License. See the LICENSE file for details.