TCPRegistered PortFirewall: Usually Closed
28017

MongoDB Web Interface (legacy)

What is Port 28017?

Port 28017 was the default port for MongoDB's built-in HTTP web interface, which provided basic monitoring and status information through a browser. This interface was deprecated in MongoDB 3.2 and removed in MongoDB 3.6. When it existed, it showed database statistics, current operations, logging output, and replica set status. The web interface was always intended for development use only and was not recommended for production. Modern MongoDB monitoring uses MongoDB Atlas monitoring, the mongosh shell, MongoDB Compass GUI, or third-party monitoring tools like Datadog and Prometheus with the MongoDB exporter.

Common Uses

  • Legacy MongoDB status monitoring (deprecated)
  • Historical MongoDB web dashboard
  • Development-time database inspection
  • Basic MongoDB health checking

Technical Details

Port Number28017
ProtocolTCP
CategoryRegistered
Service NameMongoDB Web Interface (legacy)
Default FirewallUsually Closed
Port Test Commands

Copy-paste commands to check port 28017 (MongoDB Web Interface (legacy)) from your terminal

Test connectivity

Netcat (nc)Check if TCP port is reachable
nc -zv example.com 28017
curl (HTTP)Test HTTP response on this port
curl -v --max-time 5 http://example.com:28017/
TelnetBasic TCP port connectivity check
telnet example.com 28017
nmapScan port 28017 with service detection
nmap -p 28017 -sV example.com
Bash /dev/tcpPure bash TCP check (no extra tools needed)
(echo > /dev/tcp/example.com/28017) 2>/dev/null && echo "open" || echo "closed"

Open port in firewall

UFW (Ubuntu / Debian)
sudo ufw allow 28017/tcp
iptables
sudo iptables -A INPUT -p tcp --dport 28017 -j ACCEPT
firewalld (RHEL / CentOS)
sudo firewall-cmd --permanent --add-port=28017/tcp && sudo firewall-cmd --reload

Security Considerations

!

If port 28017 is open on a system, it likely indicates a very old, unpatched MongoDB installation. Update MongoDB immediately. Modern MongoDB does not use this port. Investigate any system still exposing this port as it's likely severely outdated and vulnerable.

Popular Ports Reference

The most commonly used and referenced network ports

Related Ports