Port 123: NTP (Network Time Protocol)
What port 123 (UDP) does, the security risks of leaving it open, and how to secure and test it.
| Port | 123 |
|---|---|
| Transport | UDP |
| Service | Network Time Protocol (NTP) |
| Encrypted | No (NTS adds security) |
What is port 123?
NTP keeps the clocks of computers and network devices in sync. Accurate time matters for logs, certificates and Kerberos sign-ins.
Common uses
- Synchronising servers, switches, routers and firewalls
- Making log timestamps match across systems for investigations
Security risks
- Misconfigured NTP servers abused for DDoS amplification (the old monlist command)
- Wrong time breaking certificate checks and Kerberos logons
How to secure port 123
- Point devices at a few trusted internal or well-known time sources
- Disable monlist and restrict queries on any NTP server you run
- Use NTP authentication or Network Time Security where supported
How to check if port 123 is open
| Where | Command |
|---|---|
| Scan from another machine | nmap -sU -p 123 <host> |
| Linux (what is listening) | sudo ss -tulpn | grep :123 |
| Windows (what is listening) | netstat -ano | findstr :123 |
Only scan systems you own or have permission to test.
Related ports
Frequently asked questions
What is port 123 used for?
Port 123 (UDP) is used by Network Time Protocol (NTP). NTP keeps the clocks of computers and network devices in sync.
Is it safe to open port 123?
Only if the service needs to be reached and is configured securely. Point devices at a few trusted internal or well-known time sources.
How do I check if port 123 is open?
From another computer, run nmap -p 123 followed by the host address with -sU for UDP. On the server itself, ss -tulpn on Linux or netstat -ano on Windows shows whether anything is listening on 123.
Learn more: TCP, UDP and ports explained and firewall basics.