Port 873: rsync

Port 873 (TCP) is used by rsync. rsync daemon for file synchronization. rsync over SSH uses port 22 instead.

873Port
TCPProtocol
rsyncIANA service name
File transferCategory

Port range

873 is a well-known (system) port (range 0–1023). On Linux and macOS, binding to it traditionally needs root or the CAP_NET_BIND_SERVICE capability.

Security

Only open port 873 to the hosts that need it. Prefer the encrypted variant of the protocol where one exists.

Open port 873 in a firewall

ufw         sudo ufw allow 873/tcp
iptables    sudo iptables -A INPUT -p tcp --dport 873 -j ACCEPT
firewalld   sudo firewall-cmd --permanent --add-port=873/tcp
Windows     New-NetFirewallRule -DisplayName "rsync 873" -Direction Inbound -Protocol TCP -LocalPort 873 -Action Allow

Check if port 873 is open

nc -vz example.com 873
Test-NetConnection example.com -Port 873   # PowerShell
sudo ss -tulpn | grep ':873 '   # what is listening locally (Linux)

Other file transfer ports

Frequently asked questions

What is port 873 used for?
rsync. rsync daemon for file synchronization. rsync over SSH uses port 22 instead.
Is port 873 TCP or UDP?
TCP.