Skip to main content

Quickly retrieve the current IPv4 address of your machine.

Project description

netLocator# NetLocator

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.

Features

  • Retrieves the current IPv4 address.

  • Supports both wired and wireless connections.

Installation

To install NetLocator, simply run:

pip install netLocator

How to Use get_ip_address from netLocator

To use the get_ip_address function from the netLocator module, follow these steps:

  1. Import the function: Start by importing the get_ip_address function from the netLocator module.

  2. Call the function: Once imported, you can call the get_ip_address() function to retrieve the current IPv4 address of your machine.

Example Code

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}")

Documentation

For more detailed documentation, visit the NetLocator Documentation

Contributing

Contributions are welcome! Please feel free to submit a pull request or open an issue if you encounter any problems.

License

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

netlocator-1.0.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Built Distribution

netLocator-1.0.0-py3-none-any.whl (3.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page