Port 123 (NTP)
UDPNetwork Time Protocol — NTP listens on port 123 by default.
What is Port 123?
Port 123 is used by NTP (Network Time Protocol), the protocol responsible for clock synchronization across computer networks. NTP is critical for maintaining accurate time on servers, workstations, and network devices.
NTP on port 123 uses UDP to exchange time information between clients and NTP servers. The protocol can achieve millisecond-level accuracy over the internet and sub-millisecond accuracy on local networks. NTP uses a hierarchical system of time sources called strata, with stratum 0 being atomic clocks.
Accurate time synchronization is essential for security (certificate validation, log correlation), distributed systems (database replication), and regulatory compliance. NTP servers can be targets for amplification DDoS attacks if not properly configured.
Port 123 Security
NTP on port 123 should be secured with appropriate access controls and monitoring. Ensure the service is only accessible from trusted networks by configuring firewall rules to restrict access. If the protocol supports encryption, enable TLS/SSL to protect data in transit.
Regularly update NTP to the latest version to patch known vulnerabilities. Monitor port 123 for unauthorized access attempts and implement rate limiting where possible. Follow the principle of least privilege when configuring access permissions.
How to Check Port 123
To check if port 123 is open on a remote host, use nmap: 'nmap -p 123 hostname'. For a quick TCP connection test, use: 'telnet hostname 123' or 'nc -zv hostname 123'. On Windows PowerShell, use: 'Test-NetConnection -ComputerName hostname -Port 123'.
To check if port 123 is listening on your local machine, use: 'netstat -tlnp | grep 123' on Linux, or 'ss -tlnp | grep 123'. On Windows, use: 'netstat -an | findstr 123'. For a comprehensive scan, use: 'nmap -sV -p 123 hostname' to detect the service version running on the port.
Related Ports
Frequently Asked Questions
What is port 123 used for?
Port 123 is the default port for Network Time Protocol (NTP). It is used for ntp communication using the UDP protocol.
Is port 123 TCP or UDP?
Port 123 uses UDP. UDP is used because ntp requires fast, low-overhead communication.
Should port 123 be open?
Port 123 should only be open if you are actively running NTP. Close unused ports to reduce your attack surface. If needed, restrict access to trusted IP addresses using firewall rules.
How do I check if port 123 is open?
Use 'nmap -p 123 hostname' to scan remotely, or 'netstat -tlnp | grep 123' to check locally on Linux. On Windows, use 'Test-NetConnection -Port 123 hostname' in PowerShell.
How do I secure port 123?
Secure port 123 by restricting access with firewall rules, using encryption (TLS/SSL) where supported, keeping NTP updated, using strong authentication, and monitoring for unauthorized access attempts.
🔍 Check Your IP Address
While you're here, find out your public IP address, location, and ISP details instantly.
Check My IP →