Python DHCP Tkinter Application
This project is a simple DHCP server application built using Python and Tkinter. It provides a graphical user interface (GUI) for managing DHCP leases and clients.
Project Structure
python-dhcp-tk-app
├── src
│ ├── main.py # Entry point of the application
│ ├── dhcp_server.py # Contains the DHCPServer class
│ ├── gui.py # Defines the GUI layout
│ ├── utils.py # Utility functions for networking tasks
│ └── types
│ └── __init__.py # Custom types and data structures
├── requirements.txt # Project dependencies
└── README.md # Project documentation
Requirements
To run this project, you need to install the following dependencies:
- tkinter
- (any additional libraries required for DHCP functionality)
You can install the required packages using pip:
pip install -r requirements.txt
Usage
-
Run the application by executing the
main.py
file:python src/main.py
-
The GUI will display a dropdown menu with available network interfaces. Select the desired interface.
-
Enter the desired IP address and subnet mask in the provided fields.
-
Use the "Start" button to start the DHCP server. The application will begin managing DHCP leases and display active clients in the list.
-
To stop the DHCP server, click the "Stop" button.
Contributing
Feel free to contribute to this project by submitting issues or pull requests. Your feedback and contributions are welcome!
License
This project is licensed under the MIT License. See the LICENSE file for more details.