Custom IP Generator is a Python Flask application that allows you to access custom IP addresses sent from a client. This application serves as a simple example of a server-client interaction, where the Flask server receives custom IP addresses from the client and processes them.
Before you start, make sure you have the following installed:
- Python 3.8 or higher
- Flask 2.0 or higher
You can install Flask using pip:
pip install Flask
- Clone this repository to your local machine:
git clone https://github.com/yourusername/Custom-IP-Generator-Python_Flask.git
- Change to the project directory:
cd Custom-IP-Generator-Python_Flask
- Run the Flask application:
python app.py
Your Flask application should now be running locally.
Once the application is running, you can access it at http://localhost:5000. Now you can send a request to the server using client.py
file.
The following API endpoints are available:
- /IPgetter/: POST custom IP addresses to the server.
You can interact with these endpoints to send and retrieve custom IP addresses.
The client file allows you to send custom IP addresses to the Flask server. Follow these steps to run the client file:
- Ensure that you have Python 3.x installed on your local machine.
- Open the client file in a text editor or Python IDE of your choice.
- Locate the
custom_ip
variable in the client file. It is the variable that holds the custom IP address you want to send to the server. - Modify the
custom_ip
variable to the desired IP address you want to send. For example:custom_ip = "192.168.1.100"
- Save the File
- Open the Terminal, navigate to client file and run
python client.py
Contributions are welcome! If you'd like to contribute to this project, please follow these steps:
- Fork the repository.
- Create a new branch for your feature:
- git checkout -b feature-name.
- Make your changes and commit them:
- git commit -m 'Add some feature'.
- Push to your branch: git push origin feature-name.
- Submit a pull request with a description of your changes.
This project is licensed under the MIT License - see the LICENSE file for details.