node.js - How to restrict database ports on a cloud host? -


i want set node.js/mongodb app on digital ocean. it's not going see ton of traffic, 1 virtual machine instance plenty.

when mongodb starts up, attaches default port 27017. mean port available hits myip:27017 or myserver.com:27017?

how make database accessible app?

assuming no advanced/customized firewall settings:

if mongodb bound 127.0.0.1 accessible machine or local network.

if bound 0.0.0.0 or actual network interface connected server, on open internet.


Popular posts from this blog