Port 43: WHOIS

Port 43 (TCP) is used by WHOIS. Domain and IP registration lookups. Being replaced by RDAP over HTTPS.

43Port
TCPProtocol
whoisIANA service name
WebCategory

Port range

43 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

Web ports are meant to be public, but keep the server patched, serve HTTPS, and do not expose admin panels on the same port without authentication.

Open port 43 in a firewall

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

Check if port 43 is open

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

Other web ports

Frequently asked questions

What is port 43 used for?
WHOIS. Domain and IP registration lookups. Being replaced by RDAP over HTTPS.
Is port 43 TCP or UDP?
TCP.