Default port of mongod running with --shardsvr.
Default port of mongod running with --shardsvr.
Do not expose to the internet. Same as 27017.
Port 27018 is in the registered range and has no IANA assignment. The usage above is unofficial but widespread.
sudo ss -tlnp 'sport = :27018'sudo lsof -nP -i :27018sudo netstat -tlnp | grep ':27018 'netstat -ano | findstr :27018Get-NetTCPConnection -LocalPort 27018 -State Listen | Select LocalAddress,OwningProcessnc -vz -w 5 HOST 27018Test-NetConnection HOST -Port 27018sudo ufw deny 27018/tcpsudo iptables -A INPUT -p tcp --dport 27018 -j DROPsudo nft add rule inet filter input tcp dport 27018 dropNew-NetFirewallRule -DisplayName 'Block TCP 27018' -Direction Inbound -Protocol TCP -LocalPort 27018 -Action BlockAll port numbers · Open port checker
Assignment data: IANA port number registry (public domain), retrieved 2026-11-10.