IP Binding in Self-Managed Deployments
On this page
Overview
MongoDB binaries, mongod
and mongos
, bind to
localhost by default. If the net.ipv6
configuration file
setting or the --ipv6
command line option is set for the binary,
the binary additionally binds to the localhost IPv6 address.
Considerations
Warning
If the net.ipv6
configuration file setting or the --ipv6
command line option is set for the binary, the binary additionally
binds to the localhost IPv6 address.
To bind to all IPv4 addresses, you can specify the bind ip address of
0.0.0.0
. To bind to all IPv4 and IPv6 addresses, you can specify
the bind ip address of ::,0.0.0.0
or alternatively, use the new
net.bindIpAll
setting or the new command-line option
--bind_ip_all
.