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
Copy-paste commands to check port 28017 (MongoDB Web Interface (legacy)) from your terminal
Test connectivity
nc -zv example.com 28017
curl -v --max-time 5 http://example.com:28017/
telnet example.com 28017
nmap -p 28017 -sV example.com
(echo > /dev/tcp/example.com/28017) 2>/dev/null && echo "open" || echo "closed"
Open port in firewall
sudo ufw allow 28017/tcp
sudo iptables -A INPUT -p tcp --dport 28017 -j ACCEPT
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