Puerto27017— MongoDB
MongoDB mongod y mongos normalmente usan TCP 27017 por defecto. Otros roles, incluidos los servidores de shards y de configuración, pueden tener valores predeterminados diferentes.
Registry assignments, software defaults and local listeners are different things. A port number alone does not identify or secure a service.
Configuration and troubleshooting
Revise las opciones de inicio o net.port y net.bindIp, y después la cadena de conexión. En conjuntos de réplicas, verifique las direcciones anunciadas de los miembros además del punto de conexión inicial.
Important limitations
No exponga una base de datos sin autenticación para resolver problemas de conectividad. Una prueba de puerto no sustituye las comprobaciones del protocolo, la autenticación ni el estado del conjunto de réplicas.
Read-only checks: run on the server host
Choose the commands for your OS. Check TCP and UDP separately. No result is not a lasting availability guarantee; inspect host and container separately.
Linux
sudo ss -ltnp 'sport = :27017'macOS
sudo lsof -nP -iTCP:27017 -sTCP:LISTENWindows PowerShell
Get-NetTCPConnection -LocalPort 27017 -State ListenSources and review
Sources checked on:
This review covers the explanations and sources on this page, not your device or every community software entry below.
Software que utiliza este puerto (1 programas)
Community software entries: links are references, not individual verification.
Recomendaciones de uso
- Antes de utilizar el puerto 27017, comprueba que no esté ocupado por otros servicios
- Si encuentras conflictos de puertos, considera utilizar otros puertos o detener el servicio que lo ocupa
Preguntas frecuentes
What is port 27017 used for?
Port 27017 sits in the Database category. This page lists the registered purpose and the software commonly associated with it; to see what is actually listening on a specific machine, check the process with ss/netstat.
Is port 27017 TCP or UDP?
The registered protocol on this page is TCP. The same number behaves independently on each protocol: TCP may be listening while UDP is idle, so check them separately.
How do I check if port 27017 is in use?
On Linux: sudo ss -tlnp 'sport = :27017' for an exact port match. On macOS: sudo lsof -nP -iTCP:27017 -sTCP:LISTEN. On Windows PowerShell: Get-NetTCPConnection -LocalPort 27017 -State Listen. A listener counts as confirmed only when you can see the bind address and process name; without root/admin you will not see other users' processes.
Is port 27017 secure? Should I open it in my firewall?
A port number has no inherent security — it depends on whether the listening service is correctly configured and whether it needs exposure at all. Keep loopback/internal-only services firewalled; where public access is required, pair it with source restrictions, VPN or authentication. The caution section on this page lists port-specific risks.
Información rápida
- Puerto
- 27017
- Protocolo
- TCP
- Categorías
- Bases de datos
- Estado de uso
- 1 programas que lo utilizan
Puertos relacionados
¿Necesitas ayuda?
Si encuentras información incorrecta o necesitas añadir más, envíanos una corrección.
Enviar una corrección