MongoDB server (mongod / mongos).
MongoDB server (mongod / mongos).
Do not expose to the internet. Never expose it without authentication. Tens of thousands of open MongoDB databases were wiped and held for ransom from 2017 on. Since 3.6 mongod binds to localhost by default; if you change bindIp, enable authorization and allow only app servers.
Registry dates for this port: registered 2019-02-21.
sudo ss -tlnp 'sport = :27017'sudo lsof -nP -i :27017sudo netstat -tlnp | grep ':27017 'netstat -ano | findstr :27017Get-NetTCPConnection -LocalPort 27017 -State Listen | Select LocalAddress,OwningProcessnc -vz -w 5 HOST 27017Test-NetConnection HOST -Port 27017sudo ufw deny 27017/tcpsudo iptables -A INPUT -p tcp --dport 27017 -j DROPsudo nft add rule inet filter input tcp dport 27017 dropNew-NetFirewallRule -DisplayName 'Block TCP 27017' -Direction Inbound -Protocol TCP -LocalPort 27017 -Action BlockAll port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.