- Answer only the networks that need the service (no open resolvers, relays or reflectors).
- UDP services can be abused for DDoS amplification: rate-limit or block them at the edge.
- Disable legacy test services that have no use in production.
Port 52: XNS Time Protocol
Port 52 is assigned by IANA to xns-time (XNS Time Protocol).
How xns-time works
Network servicesThe client sends a request to port 52 and the xns-time service answers.
- Transport
- TCP · UDP
- Exposure risk
- not rated depends on the program listening
- Encryption
- Unknownnot stated by the registry
- IANA status
- Assigned1 registered service
- Range
- Well-known (0-1023)
- Category
- Network services
Is port 52 dangerous?
We have no specific security note for port 52. Its risk depends on the program actually listening on it. General advice for network services services:
IANA registry entries for port 52
| Service | Port | Transport | Description | Reference | Updated |
|---|---|---|---|---|---|
| xns-time | 52 | TCP, UDP | XNS Time Protocol | - | - |
// source: IANA service name and port number registry
Which program uses port 52, and is it reachable?
Linux
sudo ss -ltnup 'sport = :52' # process listening on 52
sudo lsof -nP -i :52macOS
sudo lsof -nP -i :52
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 52 -State Listen | Select LocalAddress, OwningProcess Get-NetUDPEndpoint -LocalPort 52 netstat -ano | findstr :52
From another machine
nmap -p 52 -sV <host> sudo nmap -sU -p 52 <host> nc -zv <host> 52
Block it in the firewall
sudo ufw deny 52/tcp # Linux (ufw) New-NetFirewallRule -DisplayName "Block 52" -Direction Inbound -LocalPort 52 -Protocol TCP -Action Block # Windows
What is port 52 used for?
Port 52 is assigned by IANA to xns-time (XNS Time Protocol).
Is port 52 TCP or UDP?
Port 52 is registered for TCP and UDP.
Is it safe to open port 52?
It depends on the program that listens on it. Open it only for a service you know and only to the networks that need it. Answer only the networks that need the service (no open resolvers, relays or reflectors).
How do I check if port 52 is open?
On Linux run "ss -ltnup 'sport = :52'", on macOS "lsof -nP -i :52", and on Windows "netstat -ano | findstr :52" to see the local process. From another machine, "nmap -p 52 <host>" shows whether it is reachable.