Port 68: DHCP client

Port 68 (UDP) is used by DHCP client. DHCP and BOOTP client side; servers reply to this port.

68Port
UDPProtocol
bootpcIANA service name
Network infrastructureCategory

Port range

68 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 68 to the hosts that need it. Prefer the encrypted variant of the protocol where one exists.

Open port 68 in a firewall

ufw         sudo ufw allow 68/udp
iptables    sudo iptables -A INPUT -p udp --dport 68 -j ACCEPT
firewalld   sudo firewall-cmd --permanent --add-port=68/udp
Windows     New-NetFirewallRule -DisplayName "DHCP client 68" -Direction Inbound -Protocol UDP -LocalPort 68 -Action Allow

Check if port 68 is open

nc -vzu example.com 68   # UDP checks are unreliable: no reply ≠ closed
sudo ss -tulpn | grep ':68 '   # what is listening locally (Linux)

Other network infrastructure ports

Frequently asked questions

What is port 68 used for?
DHCP client. DHCP and BOOTP client side; servers reply to this port.
Is port 68 TCP or UDP?
UDP.