PortScan › Port guide › Port 2375

Port 2375 (Docker API): If It's Open, You've Handed Over the Whole Server

TCP 2375Docker APIContainerExposure risk: High

Port 2375 is the unauthenticated Docker remote API. Anyone can create a container that mounts the host filesystem — a favorite entry point for crypto miners.

What is port 2375?

By default the Docker daemon only accepts commands over a local Unix socket (/var/run/docker.sock). If you open TCP for remote management with -H tcp://0.0.0.0:2375, port 2375 becomes an API with no TLS and no authentication. By convention, the TLS-protected remote API uses port 2376.

Access to the Docker API is effectively the same as having root on that server.

When it is normally open

Risks if it is open

Host takeover

Through the API, an attacker creates a container that mounts the host's / and enables privileged mode. From inside it, planting an SSH key on the host or registering a cron job hands over everything outside the container too.

Crypto-mining campaigns

Automated attacks (Kinsing and others) that sweep for open port 2375 and launch mining containers have been running for years. If CPU usage sits at 100% for no reason, be suspicious.

Security checklist

How to check whether port 2375 is open

From outside (is it exposed to the internet?)

Whether your server or home router accepts port 2375 from the internet can only be confirmed by connecting from outside. A check from inside the same network bypasses the router's firewall and gives a different answer.

PortScan opens a real TCP connection from the Cloudflare edge and reports Open, Closed or Filtered. Members can scan every port on their own IP for free and other targets free once a day.

Check port 2375

On the server (what is listening?)

Windows (PowerShell):

netstat -ano | findstr ":2375 "
Get-NetTCPConnection -LocalPort 2375 -State Listen | Select LocalAddress,OwningProcess

Linux:

sudo ss -tlnp | grep ':2375 '

If it listens on 0.0.0.0 or [::] it is open on every network; 127.0.0.1 means only that machine can connect. To test port 2375 on a server from another computer, use Test-NetConnection server-address -Port 2375 on Windows or nc -vz server-address 2375 on Linux and macOS.

How to close or restrict port 2375

The best fix is to turn the service off or make it listen only on 127.0.0.1 (see the checklist above). If you need the service but must keep it off the internet, use a firewall.

Windows Firewall

# Administrator PowerShell
New-NetFirewallRule -DisplayName "Block TCP 2375" -Direction Inbound -Protocol TCP -LocalPort 2375 -Action Block
# To allow a single IP instead (block rules take precedence, so use this instead of the rule above)
New-NetFirewallRule -DisplayName "Allow TCP 2375 from office" -Direction Inbound -Protocol TCP -LocalPort 2375 -RemoteAddress 203.0.113.10 -Action Allow

Linux (ufw)

sudo ufw deny 2375/tcp
# Allow a single IP only
sudo ufw allow from 203.0.113.10 to any port 2375 proto tcp

On a cloud server, also check port 2375 in the security group (inbound rules), which is separate from the OS firewall. For services running in Docker, the rules Docker creates can bypass ufw, so binding the port to localhost with -p 127.0.0.1:2375:2375 is the reliable option.

Router

At home or in a small office, open the router's admin page and check whether port 2375 is in the port forwarding list, whether DMZ is enabled, and whether any program opened ports by itself through UPnP. If any of the three applies, port 2375 on your PC is directly visible from the internet.

How to read the scan result

The verdict can depend on where you connect from. Many ISPs (including most Korean ISPs) block some ports such as 135, 139 and 445 on their network, so the same server can look Filtered from inside that network and Closed from abroad.

FAQ

If 2375 is closed, am I safe?
The remote API path is blocked. However, ports you exposed for containers with -p (databases, Redis, etc.) may be open separately, so check all ports too.
2376 Docker API (TLS)6443 Kubernetes API10250 Kubelet

Last updated 2026-11-04 · Use this guide to check systems you manage. Scanning systems without permission may carry legal liability.