logo
down
shadow

Connect to MongoDB on Azure (from client)


Connect to MongoDB on Azure (from client)

By : Alberto Marullo
Date : November 17 2020, 11:58 AM
Does that help I'm assuming this will be moved to ServerFault. In the meantime: There are two things required for external access, if you just spun up a new MongoDB instance:
In mongod.conf, the default configuration for bind_ip is 127.0.0.1, which means mongod is bound to the local interface. Comment out this line to listen on all interfaces Azure-specifically: Make sure you created an input endpoint to allow external traffic to reach the MongoDB VM. You can use any port for the external-facing side, and just have it map to 27017 internally. From a convention perspective, It makes sense to use 27017 both externally and internally, since that's the default MongoDB port.
code :


Share : facebook icon twitter icon
NFS server and client on two Azure VMs, client unable to connect

NFS server and client on two Azure VMs, client unable to connect


By : user3157125
Date : March 29 2020, 07:55 AM
this one helps. You also need to open TCP/UDP 111. If the two VMs are in Azure, you should make them part of the same cloud service, or connect them to a virtual network in which case given Ubuntu in Azure ships with no default software firewall you wouldn't need to open anything.
how to get Azure point-to-site client to connect to an Azure VM

how to get Azure point-to-site client to connect to an Azure VM


By : user3797414
Date : March 29 2020, 07:55 AM
help you fix your problem It is simple - Windows VMs have default Firewall enabled (as do all default WIndows Server Installations). And this Windows Firewall blocks ICMP packets (which are the PING) packets.
You can easily test the connectivity to the VM by simply trying remote desktop to the targeted VM. Or disable the Windows Firewall.
Can't Connect to MongoDB on new Azure VM

Can't Connect to MongoDB on new Azure VM


By : Maxi Castro
Date : March 29 2020, 07:55 AM
This might help you Ok, A couple of things to keep in mind (and I just tested this end to end, So I am sure it works).
code :
DEFAULT_FORWARD_POLICY="DROP"
DEFAULT_FORWARD_POLICY="ACCEPT"
sudo ufw reload
Cannot connect to MongoDB in Azure

Cannot connect to MongoDB in Azure


By : Tim Morneau
Date : March 29 2020, 07:55 AM
To fix the issue you can do Characters like @ are restricted as they mess up the structure of the URL. The reason for this is because MongoDB interprets it as the @ separator. Instead of this:
code :
var mongoClient = require("mongodb").MongoClient;
mongoClient.connect("mongodb://myuser:myp@ssword@myhost.documents.azure.com:10355/?ssl=true", function (err, db) {
  db.close();
});
mongoClient.connect("mongodb://myuser:myp%40ssword@myhost.documents.azure.com:10355/?ssl=true", { 
  uri_decode_auth: true 
}, function (err, db) {
  db.close();
});
mongoClient.connect("mongodb://myhost.documents.azure.com:10355/?ssl=true", 
 {user: 'username', pass: 'p@ssword'}, function (err, db) {
  db.close();
});
auth: {
       user: 'username',
       password: 'p@ssword',
    }
mongoClient.connect("mongodb://myhost.documents.azure.com:10355/?ssl=true", {
  auth: {
   user: 'username',
   password: 'p@ssword',
  }}, function (err, db) {
  db.close();
});
can I use 32-bit mongodb-client to connect to 64-bit mongodb-server?

can I use 32-bit mongodb-client to connect to 64-bit mongodb-server?


By : Qijie Xue
Date : March 29 2020, 07:55 AM
I wish this helpful for you The architecture of the client doesn't matter when connecting to the server. They speak over sockets. For the most part, the server doesn't even know or care what the client is.
shadow
Privacy Policy - Terms - Contact Us © ourworld-yourmove.org