NTP Server
This project implements an NTP (Network Time Protocol) server in Python.
Requirements
- Python 3.12
Installation
- Clone the repository:
git clone [email protected]:peluza/ntp_server.git
- Install the dependencies:
pip install -r requirements.txt
Execution
- Run the NTP server:
python main.py
- Configure your NTP client to synchronize with the server.
How it works
The NTP server works as follows:
- The server listens on UDP port 123.
- When it receives a time request, the server responds with the current time.
- The NTP client uses the server's information to synchronize its clock.
Usage example
To synchronize your system clock with the NTP server, you can use the ntpdate command:
ntpdate 127.0.0.1
Replace 127.0.0.1 with the IP address of the NTP server.
Note
The NTP server runs in test mode and is not designed for production use.