Skip to content

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.

Notifications You must be signed in to change notification settings

meer-khan/Custom-IP-Generator-Python_Flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 

Repository files navigation

Custom IP Generator - Python Flask MIT License

Follow me on Medium GitHub LinkedIn

Python Version Flask Version

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.

Table of Contents

Prerequisites

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

Getting Started

  1. Clone this repository to your local machine:
git clone https://github.com/yourusername/Custom-IP-Generator-Python_Flask.git
  1. Change to the project directory:
cd Custom-IP-Generator-Python_Flask
  1. Run the Flask application:
python app.py

Your Flask application should now be running locally.

Usage

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.

API Endpoints

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.

Running the Client File

The client file allows you to send custom IP addresses to the Flask server. Follow these steps to run the client file:

  1. Ensure that you have Python 3.x installed on your local machine.
  2. Open the client file in a text editor or Python IDE of your choice.
  3. 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.
  4. Modify the custom_ip variable to the desired IP address you want to send. For example:
    custom_ip = "192.168.1.100"
  5. Save the File
  6. Open the Terminal, navigate to client file and run
    python client.py
    

Contributing

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.

License

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

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages