HTTPfy

Port 6443 (Kubernetes API server)

kube-apiserver, the control-plane endpoint kubectl and every node talk to. k3s and kubeadm clusters use 6443; managed clusters often expose it on 443.

Registered (user) port, 1024-49151 TCP Containers and Kubernetes Expose only to trusted sources

What port 6443 is used for

kube-apiserver, the control-plane endpoint kubectl and every node talk to. k3s and kubeadm clusters use 6443; managed clusters often expose it on 443.

Security: should port 6443 be open?

Expose only to trusted sources. Prefer a private endpoint or an IP allowlist. Make sure anonymous auth cannot reach anything useful and RBAC is tight; leaked kubeconfigs and over-privileged service accounts are the usual way in.

IANA assignment

Service nameProtoDescriptionAssigneeReference
sun-sr-https TCP Service Registry Default HTTPS Domain Paul Sterk -
sun-sr-https UDP Service Registry Default HTTPS Domain Paul Sterk -

Registry dates for this port: registered 2006-03.

Check what is listening on port 6443

Linux: is anything listening on TCP 6443?
sudo ss -tlnp 'sport = :6443'
Linux / macOS: which process owns the port
sudo lsof -nP -i :6443
Older Linux / BSD (net-tools)
sudo netstat -tlnp | grep ':6443 '
Windows (Command Prompt)
netstat -ano | findstr :6443
Windows (PowerShell)
Get-NetTCPConnection -LocalPort 6443 -State Listen | Select LocalAddress,OwningProcess

Test it from outside

From another machine
nc -vz -w 5 HOST 6443
From Windows
Test-NetConnection HOST -Port 6443

Allow only trusted sources on port 6443 in the firewall

Replace 203.0.113.10 with the address or network you trust. With ufw, make sure the default incoming policy is deny.

ufw (one trusted source)
sudo ufw allow from 203.0.113.10 to any port 6443 proto tcp
iptables
sudo iptables -A INPUT -p tcp --dport 6443 -s 203.0.113.10 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 6443 -j DROP
nftables
sudo nft add rule inet filter input ip saddr 203.0.113.10 tcp dport 6443 accept
sudo nft add rule inet filter input tcp dport 6443 drop
Windows Firewall
New-NetFirewallRule -DisplayName 'TCP 6443 trusted' -Direction Inbound -Protocol TCP -LocalPort 6443 -RemoteAddress 203.0.113.10 -Action Allow

Related ports

All port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.