How to access mongoDB remotely under different network

214 views
Skip to first unread message

Vishwanath YS

unread,
Mar 1, 2017, 3:41:56 PM3/1/17
to mongodb-user
Hi all 

Am new bee to server development side,

             I have created a mongod server which is running on  windows, and i have installed node.js, Express.js. I can able to see the collections created in mongoDB on only local pc/server running pc and i can also able to see from neighbor pc(personal computer) which is under same network with  running server IP address and 8080/1337/any port but i could not able to get the collections/data under different network i.e., pc/mobile browser.

(summary-  How to access the mongoDB from mobile or any external browser )
kindly suggest me how to get succeed that

Thanks and regards
Vishwanath YS

Ken Alger

unread,
Mar 4, 2017, 4:26:58 PM3/4/17
to mongodb-user
Vishwanath;

This goes beyond just how to connect to a MongoDB source from one network to another and is more about how you set up your network.

Is the network that is functioning properly behind a firewall? Are their IP addresses in the Private IPv4 address space? Do you have a router of some sort to handle the NAT between networks?

All of that information will be necessary to know, and the network properly configured, before your MongoDB server will be "seen" by the outside world.

Ken

Kevin Adistambha

unread,
Mar 6, 2017, 11:53:34 PM3/6/17
to mongodb-user

Hi Vishwanath

(summary- How to access the mongoDB from mobile or any external browser )
kindly suggest me how to get succeed that

I believe Ken has touched on most of the network setup required.

It seems that you want to access your MongoDB from the public internet. If this is your intent, please ensure that your MongoDB deployment is secured properly by following the Security Checklist.

Having said that, it is generally recommended to limit the exposure of your database as much as possible; i.e., by putting the database inside a trusted network, and provide all public-facing interaction with the database via a properly secured REST API. Otherwise, you risk exposing your database to anyone on the internet.

Please check out the webinar Architecting Secure and Compliant Applications with MongoDB for more details.

Best regards,
Kevin

Reply all
Reply to author
Forward
0 new messages