Port 2377: Docker Swarm

Port 2377 (TCP) is used by Docker Swarm. Swarm cluster management traffic.

2377Port
TCPProtocol
swarmIANA service name
DevOps & dev serversCategory

Port range

2377 is a registered port (range 1024–49151). Any user can bind to it; IANA records which service registered the number.

Security

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

Open port 2377 in a firewall

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

Check if port 2377 is open

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

Other devops & dev servers ports

Frequently asked questions

What is port 2377 used for?
Docker Swarm. Swarm cluster management traffic.
Is port 2377 TCP or UDP?
TCP.