![]() But it’s definitely worth making sure your database server is properly secured. The configuration docs have a small section on security considerations. I only recommend using 0.0.0.0 for testing purposes and then recommend changing back to more restrictive IPs. The 10.x.x.x would ideally be an internal only interface that does not allow for outside your network traffic. If you don’t want people to connect from the MongoDB host, you can leave this IP address out. Congratulations You've successfully set up and accessed your laptop's localhost from your mobile device, whether you're using Windows or macOS. Your macOS localhost should now be accessible from your mobile phone. The 127.0.0.1 address is your localhost address so can connect locally from the machine without it going over the network. In the address bar, type your Mac's local IP address (e.g., ) and press Enter. I would set my bindIp up to be 127.0.0.1,10.x.x.x. External network traffic does not need to connect directly to your MongoDB servers. ![]() Click Details and the IP address should be. ![]() If your server has two network cards in it, one for external and one for internal traffic, then 0.0.0.0 will bind to both of these which is not good. Select the active network connection and click View status of this connection. If your host has a network interface that allows incoming traffic and you don’t have firewalls in place blocking public traffic to port 27017, then you have every right to be worried about security concerns. Setting bindIp to 0.0.0.0 just means that mongod will listen on all network interfaces. Making bindip only to 0.0.0.0 works fine and I 'm able to access the db via remote host however worried if it has any security concerns On Windows the hostname of the local host (not localhost, but the real name) resolves to the IP address of the interface that was started up last.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |