Port 19: Character Generator

Port 19 (TCP/UDP) is used by Character Generator. Sends an endless stream of characters. A known UDP amplification vector; disable it.

19Port
TCP/UDPProtocol
chargenIANA service name
Legacy protocolsCategory

Port range

19 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

Port 19 should not be reachable from the public internet. Restrict it to trusted networks or a VPN, and scan your public IP to confirm it is closed.

Open port 19 in a firewall

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

Check if port 19 is open

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

Other legacy protocols ports

Frequently asked questions

What is port 19 used for?
Character Generator. Sends an endless stream of characters. A known UDP amplification vector; disable it.
Is port 19 TCP or UDP?
Both are assigned. Check which one your software actually listens on.